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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
"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 |