Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
0
0
GB
Would there be any reason why after a user is idle for a specific amount of time on my website, it doesnt log them out. The secure page stays open but then kicks them out if they try to do something.

I thought the following code in the webconfig file should kick the user out?

Code:
<authentication mode="Forms">
            <forms name=".Login" loginUrl="index.aspx" defaultUrl="index.aspx" protection="All" timeout="30">
                
            </forms>
        </authentication>
        <sessionState timeout="30" />
 
That's how any web development works (not just ASP.NET). The server only knows that they have timed out once a second request is made, it has no concept of what they are doing on the client after it sent them the last set of HTML.

Mark,

Darlington Web Design[tab]|[tab]Experts, Information, Ideas & Knowledge[tab]|[tab]ASP.NET Tips & Tricks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top