User.identity.name becames after a while

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

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

Thanks
Oscar

-2


source to share


3 answers


the reason for this was because anonymous login was enabled in IIS. I don't know how he worked in the first minutes



0


source


Session expiration is not associated with ASP.NET authentication.



This could be your forms authentication: the default time is 30 minutes, and it is configured using the timeout attribute of the system.web / authentication / forms element in web.config.

+1


source


Have you checked how often the application pool is used? If it is not set to reuse after a certain time, it can experience a lot of stress and therefore reach its limit and recirculation. At this point, you will lose your session.

Also how do you assign user.identity.name? If its through authentication, users also lose their authentication or just name?

0


source







All Articles