Re: sessions and back button
- From: "Bob Bedford" <bedford1@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 9 May 2005 15:30:54 +0200
"(¯`·..Yttrium ...·´¯)" <POUSSIERES.piegaspam@xxxxxxxx> a écrit dans le message de news: 427f176d$0$300$626a14ce@xxxxxxxxxxxxxxx
"Stefano" <texstefano@xxxxxxxxx> a écrit dans le message de news: 1115621958.252861.153940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxHi,
I am developing a web site with a section only for registered users and using sessions to control the access to these pages. I have the problem with the "back" button of the browsers, especially in IE. When I go back within the controlled zone IE always display the message "page expired" and mozilla displaying the advise that you are trying to access to a post data page etc..
I am wondering if there is a way to avoid this "problem" a save the users to think what to do when they see these messages, letting them to go back and forth until they get out of the session.
Thanks a lot for any help,
Stefano
Hi, For Ie, you can use this :
<?php header("Cache-control: private"); ?> On the first linbe of your pages. Bye,
Or far better IMHO session_cache_limiter('private, must-revalidate');
works better than the "header" function.
.
- References:
- sessions and back button
- From: Stefano
- Re: sessions and back button
- From: \(¯`·..Yttrium ...·´¯\)
- sessions and back button
- Prev by Date: Re: variable not set..
- Next by Date: Re: variable not set..
- Previous by thread: Re: sessions and back button
- Next by thread: Re: Dumb Question... mysql_fetch_array()
- Index(es):