dabbler
05-21-2003, 06:04 AM
I wonder if someone could advise on this problem:
I have a site and want to password protect part of it. I want to do this with a cookie and a bit of javascript.
I have a flash movie which can test for a password (sequence of numbers) and then I can use javascript within the movie to set the cookie. (I think)
Then I could use js to test for the existence of the cookie on the password-protected pages, with a redirect to the password movie page if it is not found.
Question is: how?
I have a script for cookie redirection, but I really don't know enough about js to figure it out yet. My host doesn't have php so I can't use that on this site (even if I knew how!!!!)
Can someone post a simple script that will set the cookie?
And then how to check for it?
Thanks
I have a site and want to password protect part of it. I want to do this with a cookie and a bit of javascript.
I have a flash movie which can test for a password (sequence of numbers) and then I can use javascript within the movie to set the cookie. (I think)
Then I could use js to test for the existence of the cookie on the password-protected pages, with a redirect to the password movie page if it is not found.
Question is: how?
I have a script for cookie redirection, but I really don't know enough about js to figure it out yet. My host doesn't have php so I can't use that on this site (even if I knew how!!!!)
Can someone post a simple script that will set the cookie?
And then how to check for it?
Thanks