I’ve made a website with a landing page.
I want to set up a checkbox to skip the landing page, directly to the homepage, the next time the user comes to the website.
How can I add a cookie to the checkbox to do what I need?
Thank you very much!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a session to do that.
by setting
once the checkbox has been used.
If you need a method to implement that action, you could make your checkbox form use a form with
method="GET"and send it to your homepage.Then you could process that on your homepage with something along the lines of:
[assuming your checkbox has
name="always_skip"attached to it.]You could then check on your intro page whether to play the intro or skip it: