FormsAuthentication Expired Cookie

B

Brian Shannon

Question:

When using forms authentication and the cookie expires the user is
redirected back to the login.aspx page. I wan to display a message saying
your time has expired please login again.

In the page load of login.aspx I test for the User.Identity.IsAuthenticated

If the cookie is expired the user wont be authenticated anymore and the
ticket is deleted. So how can I access the Expired property of
FormsAuthentication.Expired?

I am sure I am missing something!

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top