c# - Extend asp.net session timeout to 24 hours -


i developing asp webapplication website using webforms. have 3 4 sessions in whole application. e.g session["rate"], session["webinformation"], session["userinformation"] . problem want extend timeout of session["rate"] 24 hours approximately, doing in webconfig file not me. how can in asp.net

store , expire after 5 minutes (you can modify 24 hours)

session.addwithtimeout("key", "value", timespan.fromminutes(5)); 

get stored value

session.getwithtimeout("key"); 

you can find source code here


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -