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: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php