473,395 Members | 2,795 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,395 software developers and data experts.

button back and session expired

I've all my site in PHP with POST method, for avoiding most user see what's
appening in the variables I pass trough the pages. (as some info shouldn't
be visible for most users).

What appens when I push the "return" button is an error message telling the
"page has expired". I know this is a problem with the POST method, as I've
seen thousand thread about this, but I can't change my code. So it's there
any way to let this message disappear, maybe working with the header of the
pages (cache expires.....anything else).

Please help !

BoB
Jul 17 '05 #1
3 3884
Bob Bedford wrote:

[...]
I know this is a problem with the POST method, as I've
seen thousand thread about this,


thus you've seen thousands of time the solution to that problem.

S.
--
The most likely way for the world to be destroyed,
most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.
--Nathaniel Borenstein
Jul 17 '05 #2
"Bob Bedford" <be******@YouKnowWhatToDoHerehotmail.com> wrote in message news:<41**********************@news.sunrise.ch>...
I've all my site in PHP with POST method, for avoiding most user see what's
appening in the variables I pass trough the pages. (as some info shouldn't
be visible for most users).

What appens when I push the "return" button is an error message telling the
"page has expired". I know this is a problem with the POST method, as I've
seen thousand thread about this, but I can't change my code. So it's there
any way to let this message disappear, maybe working with the header of the
pages (cache expires.....anything else).


1. If using session, add session_cache_limiter('private, must-revalidate');
2. Otherwise, add header('Cache-control: private');

--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3
> 1. If using session, add session_cache_limiter('private,
must-revalidate');
2. Otherwise, add header('Cache-control: private');


this is a valuable and very helpful help !!!

Thanks, now it works !

Bob
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
21
by: Tony Marston | last post by:
If the use of the browser's BACK button is interfering with the operation of your web application then take a look at this article entitle "Back Button Blues" ...
16
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained....
6
by: theouimets | last post by:
After submitting a form from a PHP script and using the back button I get a page cannot be displayed error. Everything works find except when the back button is used. Using IE with SP2 on Windows...
1
by: softysachin | last post by:
hi I am working on asp.net application. after login i am viewing Page 1 . Page 2 Page 3 and click on logout. That means my session is expired but when i am clicked on browser back button it...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
1
by: James | last post by:
I'm getting the Warning: Page has Expired message when I hit the back button on my browser. I realize why this is happening, but ultimately this is going to severely annoy our client. Is there a...
1
by: Oscar Madrid | last post by:
Hi.. Mi aspx use many controls, then click "next" and i got a "Preconfirmation Page", if the user needs to correct a mistake, there is a "Back Button" in mi aspx, wich must go back to the previous...
1
by: bharu | last post by:
I have 2 pages where i have submit button on 1st page & on 2nd page i have previous button. Both the time i post the data means submit the forms two times. But when i clicked 2nd page's browser back...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.