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
Post a Comment