in reply to Authenticate with Cookies
You could save youself a lot of bother by using the .htaccess functionality in Apache which will look after all the details for you.
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print