Hi,
there is no build-in feature that will keep alive the session. (Do you
have a build-in keep alive for common ASP.NET web applications?? No.)
A simple dummy method that will be called every x minutes will be
fine. You can do something like this:
function pingSession() {
Namespace.Class.MyPing(function(){});
}
window.setTimeout(pingSession, 10*3600); // use timeout period of session
The "function(){}" will only indicate that you want to run the method
asynchonous, there is no handler for a result of this method. The C#
method does have an empty body, you only need the
HttpSessionStateRequirement.ReadWrite attribute.
Regards,
Michael
On 9/16/06, sam <[EMAIL PROTECTED]> wrote:
>
> I am having this problem too, and of course it will occur anytime
> someone is using ASP.NET and form authentication.
>
> Any future progress on this? It seems like a big hole in the library,
> although I love ajax.net.
>
>
> Cory wrote:
> > What I have done in the past is set a client-side script that does the
> > redirect after a set period of time has expired.
> >
> > window.setTimeout('sessionExpired()', 3600000);
> >
> > function sessionExpired(){
> >
> > window.location.href = "SessionExpired.aspx";
> >
> > }//
> >
> > This of course will execute after 1 hours has passed even if there was
> > activity, You could cancel/reset the Timeout with each Ajax request
> > using the clearTimeout method and recalling the setTimeout function.
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---