Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    41
    Thanks
    4
    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?

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    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.
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •