473,240 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,240 software developers and data experts.

sessions and back button

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
2 2155

"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
"(¯`·..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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Phil Powell | last post by:
I have a form that will be preserving form data prior to processing the form data. Upon clicking a certain submit button you will go to another PHP script that will contain the following code: ...
1
by: windandwaves | last post by:
Hi Gurus I am basically sorry that I have to bother you about this. I am a PHP beginner and I have been studying sessions and cookies over the last few weeks. I have learned lots, but I am...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
16
by: | last post by:
At the moment I am getting the following Expired Warning if a user logins into a secure page and attempts to press the 'back' button: Warning: Page has Expired The page you requested was created...
1
by: Hemanth | last post by:
Hello there, A newbie question....any help is appreciated. I'm trying to create a script that searches a few database tables based on the search text and user search preferences. I created a...
10
by: newbie | last post by:
My application_end event in global.asax is not working as-is. In order to debug, I want to call it from another file, say debug.aspx through a button, e.g. "end application". How do I call...
4
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I...
3
by: arizal | last post by:
Hi friends, I am having some problem working with my script on session stuffs. Well, i have a login page which authenticates users by using sql script then if login is successful i have ...
2
by: vinot85 | last post by:
Hi everyone, I have no idea about how to use sessions in PHP. When i click logout button, my session should get lost. If i press back button in the browser it should not go to the server...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.