开发者

Session timeout asp.net iis7?

I know this is a common problem, but I've tried every suggestion I've found and none of them seems to work for me.

I have a Windows Dedicated Server with a hosting provider. I have a Web site developed in asp.net. I want to increase the session timeout (not the application timeout), meaning, I want sessions to last longer.

I've tried editing the web.config file by adding this line inside

<sessionState timeout="60"></sessionState>

And I've tried changing this value in iis by following this article开发者_JAVA百科:

http://technet.microsoft.com/en-us/library/cc725820(v=ws.10).aspx

The authentication section in my web.config file is as follows:

<authentication mode="Windows"/>

None of these options seems to work. The session values are null after 5 mins (or less). I've logged in, waited almost 6 minutes, and when tried to access another page, the Session value was null.

Any help would be greatly appreciated.


try this in the global asax file

void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started
        Session.Timeout = Your Number here;
    }


First Check the Windows Event Log to ensure that the Worker Process is not being forced to recycle.(Event Viewer->Windows Log->System)

There may be something in your code that causes the Worker Process to force itself to recycle .

Session timeout asp.net iis7?

You can to make these changes in the IIS=>Pool Application=>Advance Setting For Change Session Time Out

Session timeout asp.net iis7?

Session timeout asp.net iis7?

Session timeout asp.net iis7?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜