Read ASP.NET Forms Authentication cookie from classic ASP?
Posted on 2004-09-01
I'm using ASP.NET forms authentication to write a cookie containing the currently logged in username:
<forms name=".ASPXINTRANETAUTH" loginUrl="/login.aspx" protection="All" timeout="60" />
<allow users="*" />
My login.aspx page creates the cookie with this command:
MY QUESTION: Is there a way to access the username stored in the cookies using Classic ASP? I want users to be able to login using the ASP.NET app, but I also want them to be able to access legacy ASP apps which I plan to re-code to use the currently logged in username supplied by the ASP.NET cookie.
I looked at the cookie contents, and I can't make out a username from it:
Security isn't of utmost importance for this app.