Re: sessions problem (and spec. Mozilla vs Opera)

From: Date: Tue, 17 Apr 2001 01:11:46 +0000
Subject: Re: sessions problem (and spec. Mozilla vs Opera)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48856@lists.php.net to get a copy of this message
HI Opers has a nasty caching behaviour which can cause problems with sessions and having different entry points on the same index page. To overcome some of the problems any hrefs that don't contain get variables should be set up as: <a href="index.php?entered=yes">....</a> Even if you never use the variable "entered" it will stop opera from caching the page. (you can't just use index.php? as this will screw sessions without cookies) This may or may not be your problem :) Tom At 10:41 AM 15/04/01 +0200, Martin =?ISO-8859-4?Q?Skj=F6ldebrand?= wrote:
On my login page (index.php) I have at the top <? session_start(); session_destroy(); The intended function of which is to stop people from hitting the Back button to reenter the site after having logged out (which bring people to the page index.php). Now, hitting BACK on Mozilla results in failed authentication and the app closes. Hitting BACK on Opera (5.0b7 Linux) you get into the app again but selecting anything from the menus results in failed authentication. Which one is behaving correctly? Is it a bug in Opera (hopefully). If, when logged in you go somewhere else, e.g. www.sunet.se, THEN hit back you get back in. Is there a way of stopping this? Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#48856) next »