asp.net mvc - MVC - Why session is lost after browser close? -
i'm using code topic's accepted answer asp.net mvc rememberme
but, after log in reopen browser , i'm not logged in. why ?
to make answer-able:
make sure browser you're using isn't setup delete cache/cookies/session information on close (or @ least add exemption local testing). also, make sure you're not browsing in privacy/incognito mode delete information on close well.
for short-term work-around, can keep browser window (at least 1 tab) open , let visual studio open new tab each compilation. should keep session information between tab views (until inevitably close window).
Comments
Post a Comment