huntert Posted June 4, 2013 Share Posted June 4, 2013 Could someone possibly let me know how they would go about doing the following: The Process: An anonymous user goes to a product page and clicks the link "View product datasheet". This link will redirect them to a form. They fill out the form and submit. Once submitted a 2 month cookie is stored in their browser. They will be redirected to the "Secret" page with all of the links to all product datasheets listed. For 2 months if they go to any products on the site and click "View product datasheet", they won't be bothered with the form. ONE RULE: Anonymous users cannot access the "Secret" page unless the cookie is stored in their browser. Quote Link to comment https://forums.phpfreaks.com/topic/278762-need-help-blocking-anonymous-user-from-a-page-unless-they-fill-out-a-form/ Share on other sites More sharing options...
Jessica Posted June 4, 2013 Share Posted June 4, 2013 Could someone possibly let me know how they would go about doing the following: I'd start by writing some code. This forum is for help with code you've written. If you need application design advice, we have a forum for that. Quote Link to comment https://forums.phpfreaks.com/topic/278762-need-help-blocking-anonymous-user-from-a-page-unless-they-fill-out-a-form/#findComment-1434026 Share on other sites More sharing options...
Eiseth Posted June 4, 2013 Share Posted June 4, 2013 (edited) Well you can use isset to check your cookie and header to redirect those anons Edited June 4, 2013 by Eiseth Quote Link to comment https://forums.phpfreaks.com/topic/278762-need-help-blocking-anonymous-user-from-a-page-unless-they-fill-out-a-form/#findComment-1434038 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.