tags:

views:

159

answers:

3

does anyone know why user.identity.name becames blank after a while about (10 mins), i am using .Net Framework 1.1

Edit:
Session Timeout is set to 20 min
no timeout is set under system.web/authentication/forms in web.config

Thanks,
Oscar

+1  A: 

Session expiry is not related to ASP.NET authentication.

It could be your forms authentication is timing out: the default is 30 minutes, and it's configured using the timeout attribute of the system.web/authentication/forms element in web.config.

Joe
no such element is on my config what else could it be
Oscar Cabrero
A: 

Have you checked to see how often the application pool is recycling? If its not set to recycle after certain time, it could be experiencing heavy load and therefore reaching the limit and recycling. At this point you would lose your session.

Also, how are you assigning the user.identity.name? If its via authentication, are the users also losing their authentication or just the name?

Victor
yes the identity is assign via Windows Authentication.
Oscar Cabrero
And so does the user lose their authentication as well or only the name clears? .IsAuthenticated returns false?
Victor
A: 

the reason of this was because anonymous logon was enabled on IIS. i dont know how it was working the first minutes

Oscar Cabrero