By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,402 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,402 IT Pros & Developers. It's quick & easy.

sessions and back button

P: n/a
Hi,

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

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Stefano" <te********@libero.it> a écrit dans le message de news:
11**********************@g14g2000cwa.googlegroups. com...
Hi,

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,


Jul 17 '05 #2

P: n/a
"(¯`·..Yttrium ...·´¯)" <PO******************@yahoo.fr> a écrit dans le
message de news: 42*********************@news.free.fr...

"Stefano" <te********@libero.it> a écrit dans le message de news:
11**********************@g14g2000cwa.googlegroups. com...
Hi,

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.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.