alvin567 Posted June 13, 2012 Share Posted June 13, 2012 How to prevent bypass page in PHP? Let's say the order of page is: page1.php->page2.php->page3.php (complete) the user has to go through the pages to complete a process like registering Is it effective if i use session to store the prev_url: Link to comment https://forums.phpfreaks.com/topic/264102-prevent-bypass-page-in-php/ Share on other sites More sharing options...
floridaflatlander Posted June 13, 2012 Share Posted June 13, 2012 Is it effective if i use session to store the prev_url: I would say yes or have sessions for the registering steps. Link to comment https://forums.phpfreaks.com/topic/264102-prevent-bypass-page-in-php/#findComment-1353456 Share on other sites More sharing options...
The Little Guy Posted June 13, 2012 Share Posted June 13, 2012 when the user goes to a page check the session this should be an int for the page/step number they are on. then you just would compare their session to the step number. if the step is bigger than the session number send them back to their session number's step. once they complete a step successfully increment the session number. Link to comment https://forums.phpfreaks.com/topic/264102-prevent-bypass-page-in-php/#findComment-1353612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.