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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -