Form Authorization Ticket Not Expiring

C

chongo

Hi,

I created a login Form that logs into my application.

In the Web.config file I have

<authentication mode="Forms" >
<forms name="loginForm" loginUrl="login.aspx"
protection="All" timeout="5" > ...

The problem I'm having is my application won't timeout after 5
minutes. The only time the ticket expires is when I Sign out of the
application.

Does any one have any suggestion,or know why this is happening?

Any help would be greatly appreciated.
 
T

Trent Millar

When you called:

FormsAuthentication.RedirectFromLoginPage("name", bool persist);

Did you happen to pass the 'bool persist' argument as true? If so you just
created a cookie independent from your session that's now stored on your
machine. Every time you login the application will find this cookie and use
it. But don't worry the lifetime of it is only 50 years or so.

If this sound's like the problem try changing the second argument to false
and then the cookie starts using that timeout property in web.config.

good luck
Trent
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top