Phpbb 3.0.5 "Log me on automatically" cookies and sessions problem
After deploying my forum on a php 5.3 server, I noticed a very ugly behavior: The "Log me on automatically" feature wasn't having any effect and the session IDs were appended to the URLs in the GET requests (&sid=.....). After checking and modifying phpbb cookie settings and cache removing, I had no success.
The solution came from this thread: http://www.phpbb.com/community/viewtopic.php?f=46&t=1823105
file in the root of the phpbb board must contain following lines:
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_value request_order GPC
First two (register_globals
) anyone knows what they do. Last one is a little documented in php.ini:
; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"