using a cutom OnAuthenicate, you could detect it was an async postback
(check for "X-MicrosoftAjax" header), and respond with an ajax compatiable
error response, instead of redirecting to the login page.
-- bruce (sqlwork.com)
"Angel666" wrote:
> We are using forms authenication with AJAX update control panels. We
> get various results but no redirect when the user has timed out and is
> no longer authenicated and does a asyncpostback. We have tried
> onasyncpostbackerror method but it is not even hitting the code
> behind.
> Because the server does try to redirect to login page we get the
> parser error(below) as it is trying to parse the login page in the
> background.
>
>
> Sys.WebForms.PageRequestManagerParserErrorException: The message
> received
> from the server could not be parsed. Common causes for this error are
> when
> the response is modified by calls to Response.Write(), response
> filters,
> HttpModules, or server trace is enabled.
>
>
> Details: Error parsing near ' |<html>
>
>
> <head>
>
> Is there any solution for authenication time out with the Update panel
> usage that can do a redirect on asynchpostbacks??
> Thank you
> Joe
>
|