Re: sessions, SIDs, and php 4.3

From: Date: Thu, 13 Nov 2003 21:57:49 +0000
Subject: Re: sessions, SIDs, and php 4.3
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169591@lists.php.net to get a copy of this message
Chris, et al -- ..and then Chris Shiflett said... % % --- David T-G <davidtg-php@justpickone.org> wrote: % > % % > % session.use_trans_sid = 1 % > % > Yep. % % OK, well PHP should add the session identifier to the URL for every link OK. % on the first page. This is because PHP can't tell until the next request That makes sense. % whether the browser is accepting cookies. You can think of PHP's logic % like this: % % 1. If the user requests a page with no session identifier at all, start a % new session. On the page sent to the user, rewrite all URLs to include the % session identifier. [snip] OK. That's what I thought. % % So, based on this, I would recommend testing from scratch. Make sure you % have no cookies. Restart the browser if necessary. Then, visit the first I restart frequently; it's lynx and it's easy :-) % page (where you first have your session_start() call) and view source. If Right. BTW, the same URL with .phps will let you see the PHP source. % PHP is doing the session.use_trans_sid stuff correctly, your URLs should % all be rewritten to include the session identifier. This would be my first % step in trying to debug the situation. It does not. I get ... Click <a href='http://test.locations.org/sessions/extracting.php'>here</a> to r +eturn.<br> Click <a href='http://test.locations.org/sessions/extracting.php?extract=3b44c2 +04f36f5fb5db176e33e45defbb'>here</a> for a SID.<br> A button: <form method='post'><input type="hidden" name="extract" value="3b44c2 +04f36f5fb5db176e33e45defbb" /><input type='submit'></form><br> and the first link obviously does not have a SID. % % Hope that helps. Still hangin'. Anyone else have any ideas? % % Chris Thanks again & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#169591) next »