faqts : Computers : Programming : Languages : PHP : Not Quite PHP : HTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

178 of 251 people (71%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Is there a way to prevent "Warning: Page has Expired " when back is clicked?

Apr 10th, 2002 00:36
Isak Venter, Arsen Yeremin, David Rider,


This usually happens when the page you are trying to go to has been 
submitted via 
<form method=”post”>. If you change the form to <form method=”get”>, 
it 
should not happen anymore.
Try using:
If you are using sessions open your php.ini file and change the value 
for session.cache_limiter to have no value, like this: 
session.cache_limiter = ; 
or
session.cache_limiter = none; 
If you do this you can use POST and the back button without worrying 
about the "page expired" warning. 
The session.cache_limiter returns control of the cache to the browser 
if it's got no value