I want to set the session timeout in code so it can come from a configurable value.
Can I just do this in global.asax?
Session.Timeout = value;
to change session timeout write this code in your web.config file
or you can also set this in global.asax file as
Session.Timeout = 60 ; // in Session.Start() event
it will increase your session expire time .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With