View Full Version : create permanent bypass option for splash
04-09-2009, 08:56 PM
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
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.
<cfcookie name="skipSplash" expires="never" value="1">
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:
<cfif isDefined( "cookie.skipSplash" )>
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.
Hope that helps, and let me know if it works.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.