0 Members and 2 Guests are viewing this topic.
There's 1 real secure way to do this.As soon as the form is loaded (for example: ./form.php)You create a $_SESSION['currentpage'] = 'form.php';And when the user submits the form, you check that variable. If it's empty, the user has deleted the session cookie.In that case you simply return back to the form
Er, what? I only need to get the location of the form, like:http://www.mywebsite.com/folder/form.htmlThe location is http://www.mywebsite.com/folder.
<?phpsession_start();$_SESSION['location'] = 'http://www.mywebsite.com/folder';?>
<?phpsession_start();if ( !isset($_SESSION['location']) ){ die('OMFGZ, Y U DELETE COOKIE? <a href="#" onClick="javascript:history.back();">Go back</a>');}var $loc = $_SESSION['location'];if ( $loc == 'http://www.mywebsite.com/folder' ){ //Specific functions for this location}?>
But you said you were already using a string to set the location.Well, my solution ain't dynamic either, but at least more secure than that imho
Nevermind then