Brett Mathe
Brett Mathe

Reputation: 6809

Need a command to determine web site session timeout value

Is there a command I can run to see a web site's session timeout value.
I am setting the timeout in the sessionState block in my web.config but it looks like that value is being overridden by some other global IIS level setting.

Is there a way to see a web site's effective session timeout setting? I would like to control session timeout in the web.config so I can override it but it doesn't seem to be working.

Thanks,

Brett

Upvotes: 0

Views: 59

Answers (1)

Morbia
Morbia

Reputation: 4344

in a test page use:

Response.Write(Session.Timeout.ToString());

Upvotes: 1

Related Questions