PC Review


Reply
Thread Tools Rate Thread

AJAX and Forms Authenication Timeout

 
 
Angel666
Guest
Posts: n/a
 
      16th Jan 2008
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
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      16th Jan 2008
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
>

 
Reply With Quote
 
Angel666
Guest
Posts: n/a
 
      16th Jan 2008
Let me clarify. We are using standard .Net forms authenication. Users
login fine but it is once we are in the application.

A user waits pass the timeout then interacts with a page inside the
application that has an update panel
and we get the famous PageMgrParser problem because what is being sent
via the response is the login page as it should.
Problem is response doesnt know how to handle this so blows up. We
tried onAsychPostBackError but the code behind doesnt even get hit.

Any ideas?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX .NET timeout problem 00_DotNetWarrior Microsoft Dot NET Framework 0 30th Jul 2007 04:58 AM
Timeout Ajax =?Utf-8?B?QXJuYXVkIFZpc2N1c2k=?= Microsoft ASP .NET 1 7th Mar 2007 11:05 AM
Forms Authenication LouB Microsoft Dot NET 0 11th Mar 2005 01:36 PM
Forms Authenication and single sign on LouB Microsoft ASP .NET 0 11th Mar 2005 01:30 PM
Forms Authenication Cookie Not Expiring Correctly =?Utf-8?B?TWlrZQ==?= Microsoft ASP .NET 3 7th Jun 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 AM.