Site Wide Cookie Detector / Page Redirection
I have built my brother a site located here at secularbull.com and in order to access the site visitors are required to "Agree" to understanding the risks involved with using any information on the site.
The problem is, only the link I listed (secularbull.com) defaults to the Site Agreement page first. Thats the way I coded it because I'm new to this and don't know any other way. However what I want is for ALL of the pages in the site to check for the "Agreement" cookie and if it's not found, visitors are redirected to the "Site Agreement" page where they would first be required to agree.
If you were to enter the site using this link http://secularbull.com/homepage.html you would bypass the Site Agreement page. That's not something we want to happen.
I haven't been able to figure this one out yet. Any suggestions would be appreciated. Thanks in advance.
Busy posted this at 10:33 — 4th February 2005.
He has: 6,151 posts
Joined: May 2001
Think of the cookie as a logged in cookie rather than an agreement cookie, in other words use a login script but change the login to agreement.
hotscripts.com has login scripts (or make your own) and then you just need to include a file (or function) to everypage that checks the value of the cookie.
You're on the right track
andy206uk posted this at 15:28 — 4th February 2005.
He has: 1,758 posts
Joined: Jul 2002
Remember... search engines won't be able to get in using this method, so if you want to be found you'll need to make sure you either have some decent content on the homepage or some other pages that are available to none logged in users.
Andy
NewTechGuy posted this at 17:16 — 4th February 2005.
He has: 57 posts
Joined: Dec 2004
Hmmmmmmmm.....both great suggestions....thanks to the both of you. Will consider further from here........
Thanks again.....
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.