Security cookie and cookie checker.
This is pretty hard what I'm about to ask...
But, bear with me...
// Your other commands here
}window.location = "http://www.toxicseduction.com/home.htm"; [This is what happens when the name and pass are correct]
I am looking for a command to add above the redirect command that will leave a cookie for the users who have the correct name and pass.
After the cookie is left they will be redirected instantly,
but now I want a script for the homepage that the registered users were redirected to that will check to see if the cookie is there, and if it isn't they won't be able to see the content on the page.
Does anyone know what I need to do this?
Note: I will be encrypting the index page so that guests don't see the location of the .js file in the source and i will also be having the cookie placed on another site but loaded from my main site so that it's not saved when users choose to save my site so they got no idea of getting in.
Can anyone help me here?
Copyright for this question by Jose Contreras 2006.
Last edited by toxicano; 12-15-2006 at 12:36 PM..