form based authentication.

  • Thread starter Thread starter Rudy Mark
  • Start date Start date
R

Rudy Mark

I have used form based authentication. for each page_load I am using
"User.Identity.IsAuthenticated" to authenticate the user. My question is ,
when I click on the refesh button, application takes me to login page.
Somewhere it looks like it is closing the session.
Please advice.
Rudy MArk
 
Rudy,
Why are you calling User.Identity.IsAuthenticated on every webform's
page_load event?
If you are not logged in, and you have your web.config set up properly for
FormsAuthentication, you should be automatically redirected to the login
page if you try to access a protected aspx
 
May sound like a stupid solution to ur problem..
But have you checked the Session Timeout in the Web.Config
file.

Also make sure you check the Time out in the IIS for ur
apln.

Suresh
 

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

Back
Top