button back and session expired

This is a discussion on button back and session expired within the PHP Language forums, part of the PHP Programming Forums category; I've all my site in PHP with POST method, for avoiding most user see what's appening in the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-17-2004
Bob Bedford
 
Posts: n/a
Default 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


Reply With Quote
  #2 (permalink)  
Old 08-18-2004
Sebastian Lauwers
 
Posts: n/a
Default Re: button back and session expired

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
Reply With Quote
  #3 (permalink)  
Old 08-18-2004
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: button back and session expired

"Bob Bedford" <bedford1@YouKnowWhatToDoHerehotmail.com> wrote in message news:<41227875$0$4877$5402220f@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
Reply With Quote
  #4 (permalink)  
Old 08-19-2004
Bob Bedford
 
Posts: n/a
Default Re: button back and session expired

> 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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0