Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > ColdFusion

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-09-2009, 07:56 PM   PM User | #1
jeffmc21
New Coder

 
Join Date: Jun 2008
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
jeffmc21 is an unknown quantity at this point
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?
jeffmc21 is offline   Reply With Quote
Old 04-10-2009, 06:43 AM   PM User | #2
Gjslick
Regular Coder

 
Join Date: Feb 2009
Location: NJ, USA
Posts: 476
Thanks: 2
Thanked 70 Times in 69 Posts
Gjslick will become famous soon enough
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.
Code:
<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:
Code:
<cfif isDefined( "cookie.skipSplash" )>
  <cflocation url="mainPage.cfm">
</cfif>
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.

Greg
Gjslick is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:14 PM.


Advertisement
Log in to turn off these ads.