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 to the CF scene
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Simple session redirect

    Hi, I've always been a little slow when it comes to coding. HTML doesn't give me too much of a problem, but some of the more advance features have just plain passed me by. At this point I have basically just confused myself.

    First, what I am trying to do is set up, just a simple session cookie to basically skip a flash intro.

    I've deduced there are two ways to do this an "OnClick" command to set a cookie or just a standard header cookie on the 2nd page to set it. I've decided that setting the cookie on the non-flash page would be the simplest and least intrusive way to do it.

    I've read two ways to do this for example.

    document.cookie("flash"=true)
    or navigator.cookie(true)

    I understand the logic, but do not understand the difference of the two formats.

    On the primary page, where the flash is loaded, I planned to put in the header there a if statement, saying something along the lines of

    if document.cookie == true(){
    window._command I forgot_== ("redirect.htm");

    I can't see how this is more than 3 or 4 lines of code. But most java script resources on the web seem to have long ago gone the way of the dodo. I just recently found this place. I looked for a while and found nothing and decided to post here. I am going to continue looking while I wait for an answer. Any explanation to the logic behind the code in novice format would be appreciated too. Or a pointer in the direction of a good tutoring site for total beginners.

    Thanks!!

    Dan

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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