ASP.NET-MVC – Session never expired on stackoverflow.com, unless the user clicks logout

I am building an asp.net mvc application.
I hope the session will never expire, once the user logs in, unless the user clicks to log out.

< p>Is this the best way?

I used it

FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);

and set createPersistentCookie to true, but still Exit after a period of time.

implement sliding expiration. Keep expiration time at a reasonable value – One day, two weeks, maximum; each request (the simplest) or update the cookie at a specific interval.

I am building an asp.net mvc application.
I hope The session will never expire, once the user logs in, unless the user clicks to log out.

Is this the best way?

I used it

FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);

and set createPersistentCookie to true, but still Log out after a period of time.

Achieve sliding expiration. Keep expiration time at a reasonable value-one day, two weeks, maximum; every request (Easiest) or update the cookie at a specific interval.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2109 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.