R
Richard
How can I check to see if a user has previously been authenticated with
FormsAuthentication on a page that is defined as viewable by everyone
in web.config?
For example, index.aspx and login.aspx allows everyone to see it via
web.config entries:
<authorization>
<allow users="*" />
</authorization>
Then, when someone logs in I use forms authentication, and the user has
the opportunity to keep the cookie/ticket persistent:
FormsAuthentication.RedirectFromLoginPage(username, True)
When the user closes out the session and returns to the website later,
I would like to check if they had been previously authenticated using
the index.aspx and login.aspx pages. Initially on those pages,
Request.IsAuthenticated returns False, but if the user enters a
restricted page, they are allowed to enter and Request.IsAuthenticated
returns True from then on.
Is this possible? Do I need to get into the cookie? If so, how?
Thanks in advanced.
FormsAuthentication on a page that is defined as viewable by everyone
in web.config?
For example, index.aspx and login.aspx allows everyone to see it via
web.config entries:
<authorization>
<allow users="*" />
</authorization>
Then, when someone logs in I use forms authentication, and the user has
the opportunity to keep the cookie/ticket persistent:
FormsAuthentication.RedirectFromLoginPage(username, True)
When the user closes out the session and returns to the website later,
I would like to check if they had been previously authenticated using
the index.aspx and login.aspx pages. Initially on those pages,
Request.IsAuthenticated returns False, but if the user enters a
restricted page, they are allowed to enter and Request.IsAuthenticated
returns True from then on.
Is this possible? Do I need to get into the cookie? If so, how?
Thanks in advanced.