Re: URL Problem with Sessions

From: Date: Fri, 01 Sep 2000 21:00:56 +0000
Subject: Re: URL Problem with Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14877@lists.php.net to get a copy of this message
On Fri, 1 Sep 2000, Thomas Deliduka wrote: > I'm not sure if it's fixed in 4.0.2 but it is a known bug in 4.0.1 and pl2. > > I brought that up to the dev list back when 4.0.1 first came out and they > said they knew about it. I just turned it off and used <?= SID ?> manually > instead. I don't use --enable-trans-id at all; I manually do the same thing you do: <?=SID?> for all URLs on my site that support sessions. But I also always have to check to make sure that SID is defined and has a string-length, or else I'll get the following sometimes: http://www.mysite.com/mypage.php?SID So I always do this: if(defined(SID) and strlen(SID)) <?=SID?> Since I predeclare each page to my site as objects with a method that gets their URLs, I only have to do this once in the class itself. Dean. > > On 9/1/00 3:12 PM this was written: > > > I an seeing a problem where one of the links on the first page accessed > > using sessions (PHP4.01p2 with -trans-sid) has the page name split and the > > session id parameter inserted: > > > > www.mysite.com/mypage?PHPSESSID=ae850 ... 622.php > > ^^^^^^ ^^^^ > > All the links are in the form <a href="mypage.php">. Only one link on the > > page that has this problem. It is the 3rd link on the page out of 7. All of > > the other links work fine and look like: > > > > www.mysite.com/mypage.php?PHPSESSID=ae850 ... 622 > > ^^^^^^^^^^ > > Any ideas? Is this a known bug and PHP4.02 will fix it? Thanks. > >

« previous php.general (#14877) next »