Re: Session Link Problems

From: Date: Fri, 12 Dec 2003 16:55:51 +0000
Subject: Re: Session Link Problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172585@lists.php.net to get a copy of this message
Steve, As Mike said, I have a similar problem. I am using PHP 4.1.2. What release are you using? Peter Mike Ford wrote:
On 12 December 2003 00:03, Steve Turner wrote:
Hi, I am having a problem with sessions. On my testing machine my script works perfectly. However on the remote server it tries to pass the session id in the url even though I am accepting cookies. It is messing up all my links since it puts PHPSESSID=6a4626fc1cde0fb228fcb3ebe5587ffd in front of my hrefs without an & after. If I click the link then it registers the session as a cookie and everything works fine from there on out. Don't understand what is happening as everyting used to work fine, and I don't think I changed anyting. Don't know how well I described this.
Have you upgraded PHP recently? As far as I recollect, this behaviour was changed somewhere in the 4.1.x-4.2.x range of releases. For a full description of the exact behaviour, see my recent post in response to Peter Walter (sent on 11-Dec at 17:36 GMT). If you want your session handling to rely solely on cookies, then set the session.use_only_cookies option in php.ini -- but be aware that anyone using a browser with cookies turned off will not be able to use your site. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


« previous php.general (#172585) next »