After a user is authenticated I store their username in session state but if the session times out, I want to create a new session for the user based on their username they authenticated with original. How can I get from Forms Authentication the currently authenticated user?
Share
The current authenticated user should be the name in the
IIdentityassigned to the identity of theIPrincipalon theUserproperty of theHttpContextIn ASP.NET MVC, it is available in a controller via