c# - Session timeout -


i have problem in creating session. session.timeout doesn't work. code session["uid"] = uid; session["username"] = username; session.timeout = 10; // ?not responding

session.timeout occurs after 3 or 4 minutes

you should set session timeout in web.config file this:

<sessionstate    mode="inproc"    cookieless="autodetect"    timeout="10" /> 

taken here: msdn on session state element in web.config


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -