fintang Posted December 11, 2013 Share Posted December 11, 2013 Hi, I have a button on my page and it links to a page that has a security notice on it, for the user to login the user has to agree that they've read this and then they click on the login in process. Is it possible if the user has read this previously(using cookies) that they are brought to the login page without showing the security page?The process is as follows:1. User clicks login.2. Depending on if the user has clicked "I have read this" the user will be brought to the login page..... if they have not read the message before then they will be brought to the security page.Hope this makes sense.Please any help would be greatly appreciated?ThanksDavid Link to comment Share on other sites More sharing options...
MrFish Posted December 11, 2013 Share Posted December 11, 2013 You should probably just do this in PHP. <?phpif(!$_COOKIE["foo"]){header("location: login.php");exit();}?> You'l have to check server side anyway. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now