note 91219 added to function.session-cache-limiter

From: Date: Sat, 30 May 2009 22:12:02 +0000
Subject: note 91219 added to function.session-cache-limiter
Groups: php.notes 
Request: Send a blank email to php-notes+get-156189@lists.php.net to get a copy of this message
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. ---- Server IP: 87.124.35.190 Probable Submitter: 86.6.64.52 ---- Manual Page -- http://www.php.net/manual/en/function.session-cache-limiter.php Edit -- https://master.php.net/note/edit/91219 Del: integrated -- https://master.php.net/note/delete/91219/integrated Del: useless -- https://master.php.net/note/delete/91219/useless Del: bad code -- https://master.php.net/note/delete/91219/bad+code Del: spam -- https://master.php.net/note/delete/91219/spam Del: non-english -- https://master.php.net/note/delete/91219/non-english Del: in docs -- https://master.php.net/note/delete/91219/in+docs Del: other reasons-- https://master.php.net/note/delete/91219 Reject -- https://master.php.net/note/reject/91219 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156189) next »