Prev   Next

Back to the top of the FAQ

Q. I am using "site-wide" cookie-login, but the if the the directory just below the root directory changes case, (for example with a link which goes to the same directory, but with upper-case instead of lower case letters in the URL), then the user is logged out!
A.

If you login to a URL like
http://www.yourdomain.com/maindir/area1/members/index.htm
and index.htm has a link to
http://www.yourdomain.com/MAINDIR/area1/members/index.htm
then the AXCOOKIELOGIN cookie is not passed by the browser to the server!

In the easyloginnow.asp file (or your equivalent) add the line:
response.Cookies(cookieName).Path = "/"
after the line
response.Cookies(cookieName) = cookieValue

This explicitly forces the browser to apply the cookie to every directory on the site, regardless of case. This line is added from version 5.1 on up, so recent users should not experience this problem. Not sure why browsers behave this way.

Back to the top of the FAQ

Prev   Next