Hi,
what do you want to implement, if it is outdated do not create a new
session or try to keep the session alive?
Regards,
Michael
On 4/6/06, Razor247 <[EMAIL PROTECTED]> wrote:
>
> My team and I are trying hard to implement a solution to the dreaded
> Session timeout problem. Heres the situation:
>
> You leave a page running until it times out, then invoke a AjaxPro
> method. This is our first attempt at a solution:
>
> [AjaxPro.AjaxMethod(HttpSessionStateRequirement.Read)]
> public int RunTest()
> {
> if(Session.IsNewSession)
> {
> string szCookieHeader =
> HttpContext.Current.Request.Headers["cookie"];
> if ((null != szCookieHeader) &&
> (szCookieHeader.IndexOf("ASP.NET_SessionId") >= 0))
> throw new Exception("sessionTimeout");
> }
> return 24;
> }
>
> However this requires the session check code to be in every AJAX
> method.
> It would be awesome to build this in. The logic would be:
> If an AJAXPro method detected it had a session attribute then it would
> automatically throw an exception is the session is expired versus just
> failing when you attempt to use a session variable
>
> thoughts??
>
>
> >
>
--
Kind regards,
Michael Schwarz
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://www.schwarz-interactive.de/
mailto:[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
-~----------~----~----~----~------~----~------~--~---