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