note 106893 added to session.examples

From: Date: Fri, 16 Dec 2011 10:01:05 +0000
Subject: note 106893 added to session.examples
Groups: php.notes 
Request: Send a blank email to php-notes+get-185086@lists.php.net to get a copy of this message
To avoid re-submits I add a random-number $rand to the form by "GET". (action='file.php?rand= $rand'). Further, the $rand is stored in a SESSION-variable. Everytime the file ist called, the functions will only be processed if the $rand that comes by "GET" is not identical to the $rand in the SESSION-variable. If someone comes there by pressing the "back" key of his browser, the 2 $rand will be identical and nothing will happen. That works perfect. ---- Server IP: 69.147.83.197 Probable Submitter: 89.247.175.63 ---- Manual Page -- http://www.php.net/manual/en/session.examples.php Edit -- https://master.php.net/note/edit/106893 Del: integrated -- https://master.php.net/note/delete/106893/integrated Del: useless -- https://master.php.net/note/delete/106893/useless Del: bad code -- https://master.php.net/note/delete/106893/bad+code Del: spam -- https://master.php.net/note/delete/106893/spam Del: non-english -- https://master.php.net/note/delete/106893/non-english Del: in docs -- https://master.php.net/note/delete/106893/in+docs Del: other reasons-- https://master.php.net/note/delete/106893 Reject -- https://master.php.net/note/reject/106893 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185086) next »