codeboy89 Posted December 6, 2009 Share Posted December 6, 2009 I am currently using the snippet below, can anyone show me a way to use the similar setup without cookies? if (isset($_COOKIE['FormSubmitted'])) { die('You may only submit this form once per session!'); } setcookie('FormSubmitted', '1'); Link to comment https://forums.phpfreaks.com/topic/184143-stopping-multiple-submit-with-sessions/ Share on other sites More sharing options...
Jnerocorp Posted December 6, 2009 Share Posted December 6, 2009 is this what you want? <?php session_start(); if(isset($_SESSION['FormSubmitted'])){ die('You may only submit this form once per session!'); } $_SESSION['FormSubmitted'] = "1"; ?> -John Link to comment https://forums.phpfreaks.com/topic/184143-stopping-multiple-submit-with-sessions/#findComment-972218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.