Handeing Session and authentication timeout through callback scrip

G

Guest

I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to
get the result back from server without postback the page. Problem is when
seesion expires or authentication times out, callback script does not do
anything and hangs. If I click another key which requires postback after
that, I get following error:
-----------
Failed to load viewstate. The control tree into which viewstate is being
loaded must match the control tree that was used to save viewstate during the
previous request. For example, when adding controls dynamically, the
controls added during a post-back must match the type and position of the
controls added during the initial request.
-----------

If I click on any button which perfoms postback on page, everything is fine
and I'm getting forwarded to login page, but when I click on the button which
implemented client callback script on and then a postback button, the error
happens.
I was wondering how can I check on session status on callback script funtion.
 
G

Guest

Can't you have the server-side method that is called check the Session and
Authentication state, and include something to that effect in the callback?

Peter
 
G

Guest

RaiseCallbackEvent method has implementation which returns error message as
session expired, but looks like it won't get executed!
I log user authentication info on page init and RaiseCallbackEvent method.
when session expires (by reseting iis), and I click on callback button, none
of them gets called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,835
Latest member
lila30

Latest Threads

Top