How I can set the timeout for a session specific in ASP.NET? it is possible? I have two or more sesions in my web application, I need set:
Session[\"foo\"] //exp
for specific session lets say you want to make timeout for this session Session["foo"] =14 min you can do like this
DateTime timenow=DateTime.now;
DateTime timeafter14min=timenow.AddMinuits(14);
if(DateTime.Now>timeafter14min)
{
HttpContext.Current.Session["foo"]=null;
}
session not expired but cleared