Results 1 to 1 of 1

Thread: Add cookie before executing script

  1. #1
    Join Date
    Jan 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Add cookie before executing script

    Hi there. I've been using a password encryption script a lot like the one here. Now I want to add another function to the code.

    The code I'm using is below... what I'm trying to do is, if a user enters a correct password, to write a cookie called "access" (of no particular value) to the user's computer before sending them to location.href.

    Am really very new at this, so any help (and words of one syllable) much appreciated!


    Code:
    go()
    
    else
    
    inc()
    
       }
    
    }
    
    function go(){
    
    location.href=pass+".htm";
    
    }
    
    </SCRIPT>
    Last edited by monkeyboy; 01-26-2006 at 07:43 PM.

Bookmarks

Posting Permissions

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