note 91219 rejected from function.session-cache-limiter by danbrown

From: Date: Mon, 01 Jun 2009 13:09:36 +0000
Subject: note 91219 rejected from function.session-cache-limiter by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156258@lists.php.net to get a copy of this message
Note Submitter: sept10ster at gmail dot com ---- KSH here, Hi I need urgent help on following issues. I have a form page which after getting values from a user redirects user to a new page. When a user click back button then the 'warning: page expired' is shown to the user. I resolved this matter using: ini_set('session.cache_limiter', 'private'); But now when the user click back button and by any chance if he/ she clicks the refresh button then the record of the form is inserted again (twice). A similar problem is happening on a page which shows the result of a string search. The results are shown in the form of hypertext to a user. Now when a user clicks a hypertext and is moved to a new page and there he decides to click back button, the search result page is shown as expected(because I have again placed the ini_set('session.cache_limiter', 'private'); line in the code). However, when a user goes to a new page, say the page where he is filling a bigger form and comes back to the page where actual search can be done, then user is not shown a blank page waiting for a user to insert a string and press submit button. Instead the search results from the last time the user searched for anything is shown to the user. :-) Please help.

« previous php.notes (#156258) next »