Re: Session in .NET 2.0



Ideally it should never recycle.
If you have a browser hitting the SessionRenew.aspx every 10 minutes then it
will not recycle due to inactivity.

If it recycles just because someone spiked CPU and hoster had to hit reset
button in shared hosting environment you doomed no matter what you do :)

But then if availability that important to you time to think about dedicated
server.

George.

"Scott Roberts" <sroberts@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:%23m3dO5$RIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
Nice work-around, but you still can't control when the asp.net worker
process re-cycles. Especially in a shared host environment.



"George Ter-Saakov" <gt-nsp@xxxxxxxxxxx> wrote in message
news:%23OoRjn$RIHA.5360@xxxxxxxxxxxxxxxxxxxxxxx
Read my article on codeproject for easy solution
http://www.codeproject.com/KB/aspnet/SessionForever.aspx


George.

"Jack" <no@xxxxx> wrote in message
news:uxL%23ad%23RIHA.2000@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am new to .net. I have created a small web application using .net 2.0
in vs2005, where the user logs in and adds content on their pages. The
content editing is done by integrating a wysiwyg editor (FCKEditor).

The problem is that sometime if the user spends too much time editing
the content and presses the update button, the session gets timed out
and the users looses all what he has been doing. In the old days of
classic ASP, i used to increase the Session.Timeout value to a high
number. But how to do it in .NET? I would like to know some best
practice example of keeping the user session alive in .NET.

Any help is appriciated.

Tnx.






.


Loading