Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
04-09-2009, 08:56 PM #1
- Join Date
- Jun 2008
- Thanked 0 Times in 0 Posts
create permanent bypass option for splash
I have a splash page for our site (not my choice, but my client wants it), and I need to add an option to "permanently bypass" beside the enter store option.
Anyone have any idea or advice on how to create that so that it works properly?
04-10-2009, 07:43 AM #2
- Join Date
- Feb 2009
- NJ, USA
- Thanked 70 Times in 69 Posts
What you need to do is set a cookie on the client's machine (that does not expire) when they click on the link to permanently bypass the splash screen.
So, on the page that the user gets to when they click the link to permanently bypass the spash screen, you would have code similar to the following, which will set the cookie onto the clients machine.
Then, on your spash screen page (at the top), you would have code similar to this, to redirect the user into the site if they have that skipSplash cookie set:Code:<cfcookie name="skipSplash" expires="never" value="1">
The 'skipSplash' cookie will remain on the user's computer indefinitely so that the next time they visit the site, the splash screen's page can read it and redirect them in.Code:<cfif isDefined( "cookie.skipSplash" )> <cflocation url="mainPage.cfm"> </cfif>
Hope that helps, and let me know if it works.