Yes you are. first of all, the cookie script should reside with the rest of your cgi-scripts in the cgi dir, second, it should be part of the overal program. in other words you would add a cll header like require cookie.pl or whatever you are using for a script tiltle to caal the function to check cookies
Try downloading the YaBB Bulliten Board from http://www.yabbforum.com The guys who wrote this were brillient and this scipt has some excellent examples of cookie use Bill Lyles ----- Original Message ----- From: "Matthew Harrison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 13, 2002 9:53 AM Subject: login system I am trying to write a members area for my website using cookies. I have got the script which checks the username and password, then sets a cookie containing the ID of that user. What I eventually want is a small script that I can put in my restricted html pages using SSI, that will check to see if the cookie exists, (and that it is valid) and if it isn't there, then a simple redirect. I believe that redirect should work before any of the html is displayed. Am i going about this totally the wrong way? -- Matthew Harrison Internet/Network Services Administrator Genstate www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]