473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

AJAX and Forms Authenication Timeout

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.PageRequestManagerParserErrorExceptio n: 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
Jan 16 '08 #1
2 2335
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.PageRequestManagerParserErrorExceptio n: 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
Jan 16 '08 #2
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?

Jan 16 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: LouB | last post by:
I am researching a scenario with our Web Product, and am unsure about how to do it. In product 'A', we use Forms Authenication, and it works fine. The User Initially logs on with user/password etc...
0
by: Joe Bonavita | last post by:
I want the use forms authenication for a specific folder so I'm using a location element in the web.config. If someone tries to access a page in that folder directly, they are brought to a main...
0
by: LouB | last post by:
I am researching a scenario with our Web Product, and am unsure about how to do it. In product 'A', we use Forms Authenication, and it works fine. The User Initially logs on with user/password etc...
1
by: MB | last post by:
Hi guys, I've been experiencing a problem here with forms authentication. When I am on one of my wesite's http (non-secure pages) everything works fine. However, I am using a Shared SSL provided...
13
by: =?Utf-8?B?Y2hpeDIz?= | last post by:
Hi!!! I am having a hard time processing 20,000 records using AJAX. AJAX threw an internet connection timeout. Is there any way that I can increase the internet connection timeout by using...
2
by: germ | last post by:
doing a simple page webmethod call an a page via PageMethods works fine in ie7 & opera9 the same call on firefox ( and I assume netscape ) generates the following error : Error: " nsresult:...
2
by: 00_DotNetWarrior | last post by:
In my application, I use session to store some postback value. So, I solved the standard ASP.NET session timeout issue by doing these: 1. In web.config, I used <sessionStateand set it to 12...
4
by: saint999 | last post by:
Desperately need help. We are using a .Net AJAX control panel and having an issue with when a user times out of our Authenication platform. If a user stays on the screen with no activity for 15mins...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.