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: Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.