Re: Session in .NET 2.0

Tech-Archive recommends: Fix windows errors by optimizing your registry



George Ter-Saakov,

quick question:

why can't you use a gif image instead of the gif-class something like:

.......
.......
document.images("renewSession").src = "/images/spacer.gif?par=" +
Math.random();
.......
.......


Does this work? or Not ?

LVP




"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.





.


Quantcast