inconsistent timeout periods

A

Arthur Dent

Hello all,

I am having a significant problem with the security in my app. I am
experiencing a problem, where the session apparently times out, and all my
session data is reset just as if a new session was started, ... but the
FormsAuthentication ticket doesn't expire, and so i wind up with a user who
is no longer actually logged in being able to access sections of the site
which are locked down using the "LOCATIONS" node of the web.config file and
application roles.

How can i make sure my session and authentication ticket both expire
together?

Thanks in advance,
- Arthur Dent.
 
D

Dominick Baier

you can set the timeout in the <sessionState> <forms> element respectively.

But it sounds very much like your appdomain recycles at some point - usually
session is sliding expiration.

Are you by any chance doing some file operations in your web app, or other
stuff like:

Machine.Config, Web.Config or Global.asax are modified
The bin directory or its contents is modified
The number of re-compilations (aspx, ascx or asax) exceeds the limit specified
by the <compilation
numRecompilesBeforeAppRestart=/> setting in machine.config or web.config
(by default this is set to 15)
The physical path of the virtual directory is modified
The CAS policy is modified
The Web service is restarted
Application Sub-Directories are deleted
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top