RE: [PHP] Session Help

From: Date: Wed, 30 Jan 2002 23:06:34 +0000
Subject: RE: [PHP] Session Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82839@lists.php.net to get a copy of this message
This is such an annoying thing. And it seems as though no one is willing to cover it in any manual, book or tutorial. Apparently the problem is that PHP sessions automatically set the no-cache header. So at the top of each script, after the session_start() function set header("Cache-Control: public"); That will the trick. Actually it may work too well but at least your visitors won't get discouraged by that annoying message. -- Kevin Stone Kevin@helpelf.com > -----Original Message----- > From: Michael: Dave II, Electric Boogaloo [mailto:michaeln@twentyten.org] > Sent: Tuesday, January 29, 2002 3:47 PM > To: php-general@lists.php.net > Subject: [PHP] Session Help > > I'm having a little problem with my sessions on a website I'm programming > for. After a user logs in, if that user follows a link, the variable > information is being passed correctly, but when they hit "Back", Internet > Explorer gives a "Warning This Page Has Expired" error. Hitting refresh > does fix this, but "Forward/Back" is such a common procedure that I'd like > for this to work smoothly. Could someone tell me what I'm doing wrong > here? > > Thanks in advance. > > > Michael > > > > -- > 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 (#82839) next »