Re: sessions without cookies

From: Date: Sun, 04 Feb 2001 04:56:13 +0000
Subject: Re: sessions without cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38074@lists.php.net to get a copy of this message
> How can you get something like: > > header ("Location: $PHP_SELF?"); > > to redirect with the sessid in the url? In my tests, it redirects, but > does not append the sessid. > > I have compiled with --enable-trans-sid. Transparent sid is working, I > can use it on links like: > > <A HREF="<?php echo "$PHP_SELF?"; ?>"> > > and it works. I have put this on the links on my page, so that the > session will be kept even if the user has cookies disabled. But if the > user (who has cookies disabled) clicks on the browser back button, they > go back to the first page and start a new session. > > Is there a way to redirect this first page back to itself quickly, with > the sessid in the url, so that even a user with cookies disabled will > not lose the session if they use the browser back or reload buttons? *maybe* you can use header("Location: $PHP_SELF?$PHP_SESSID"); (or whatever variable is holding the session id... But you might just be testing with a broken browser that is doing caching in a bad/weird way... Test with some other browsers before you get too carried away, and be sure you know what's happening. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38074) next »