Forms Authentication problem

B

Ben

Hi,

I am using forms authentication. When the user clicks the "Logout" button
and then tries to login again, all is well. But when the user closes the
browser and comes back in, the app thinks that the user is still logged in.

I am using cookies. How can I check for this problem and clear it?

Thanks

Ben
 
B

Brock Allen

Sounds like whereever you're calling FormsAuthentication.SetAuthCookie or
FormsAuthentication.RedirectFromLoginPage you're passing true as the 2nd
parameter. Pass false -- this says to not use a persistent cookie.
 
B

Ben

Brock,

Setting the second parameter to false did the trick!

Thanks for your help!

Ben
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top