RE: [PHP] sessions & cookies

From: Date: Sat, 19 Jun 2004 14:52:20 +0000
Subject: RE: [PHP] sessions & cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188639@lists.php.net to get a copy of this message
Scott Taylor wrote: > How exactly do sessions work? I've heard that if cookies are disabled > that a session will then pass it's variables in the url (through GET). > Yet when I manually disable cookies none of my pages work (because the > $_SESSION variables do not seem to be working). The variables themselves aren't passed, only a session ID, and that is only passed through GET/POST if transparent SID support is enabled (it is disabled by default). You can change the "session.use_trans_sid" setting in your php.ini file or if your server supports .htaccess you can create one and add "php_flag session.use_trans_sid on" to it. For more information see the manual: http://www.php.net/manual/en/ref.session.php

« previous php.general (#188639) next »