in reply to Re: Perl and Cookies
in thread Perl and Cookies

Wow, you're right. Do you think I could embed some perl script that would be called when the page is loaded? That script could read the cookie and then set a variable yes or no? Any snippets you could give me? Thanks.

Replies are listed 'Best First'.
Re^3: Perl and Cookies
by sgifford (Prior) on Mar 06, 2006 at 13:51 UTC
    The easiest way to do this is to use the authentication built into your HTTP server. Search for "HTTP Basic Auth" in your documentation, and you should find a few commands to password-protect pages. The second easiest way is to write a small CGI script to check the password and only return the page if the correct password is given (make sure it only returns the appropriate pages, and can't be fooled with things like ../../../../../../etc/passwd). You can also do some pretty cool magic with mod_perl and its authentication handlers with Apache::AuthCookie.