Re: Session id

From: Date: Mon, 21 Aug 2000 18:37:45 +0000
Subject: Re: Session id
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12778@lists.php.net to get a copy of this message
There is an option that you compile PHP with to have it automatically insert the session ID in the GET parameter when necessary. We'll call it --enable-sid just because I can't remember what the option really is. You should probably compile PHP again without this option; then you can include the SID your self, like so: ?><a href="browser.php?<?=SID?>"><? This way PHP will only print out 'SID' if it needs to at exactly the spot you told it to. Hope that's clear. I'm sure someone else remembers what the compiling option is. On Mon, 21 Aug 2000, Lenny wrote: > I'm having a strange problem with the PHPSESSID value that's appended to url's > automatically (the trans-id attribute is on). I have url's such as > http://www.whatever.com/browse.php?cid=9&sid=0 on my front page, > but now that the session id's are automatically appended, some of the links are now like > > http://www.whatever.com/browse.php?cid=9&sid=&PHPSESSID=22dcdd2fc728110a6fb64b7d542217290 > > and > > http://www.whatever.com/b?PHPSESSID=22dcdd2fc728110a6fb64b7d54221729rowse.php?cid=16&sid=62õ > R¢:v›o«_âæ˜=ª > It appears as if the session id is inserted in the middle of the url. The problem is very > consistent since the problem links are exactly the same each time. Once I refresh the page or visit > another page and come back, the problem is gone since the appended session id is no longer there. > I have a session_start() call at the top of each page, because I use sessions for people to log > in. > > Any help would be very much appreciated, > Lenny > http://www.internetplays.com/ > >

« previous php.general (#12778) next »