Asp.net MVC authentication ticked without create auth cookie
Posted
by Diego
on Stack Overflow
See other posts from Stack Overflow
or by Diego
Published on 2009-09-22T20:26:18Z
Indexed on
2010/05/15
23:10 UTC
Read the original article
Hit count: 509
asp.net-mvc
|forms-authentication
I'm authenticating a user in my application with the method "FormsAuthentication.SetAuthCookie" method, but when I close the browser and reopen it, it is still authenticated, but the session is over already, then my app crashes because it has necessary data on the session to generate the menus.
What I want to do is the following: Create an authentication ticket without create a auth cookie to, whenever the user open the page in a new browser session it will request the login once again.
How can I achieve this.
© Stack Overflow or respective owner