We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Note Session Expired in CallBack Panel

Thread ID:





73428 May 6,2008 07:24 PM UTC May 12,2008 01:27 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Mark Adams
Asked On May 6, 2008 07:24 PM UTC

Is there an easy way to determine on a callback that the session has expired, and if so redirect the user to a login page? On post back it is fairly trivial to check for the existence of session variable and then redirect. However, on callback redirect is not possible. I was looking into using a pop up window to provide the link, but how do I open a pop up from the server side code where I check my session variables from?

Janagan [Syncfusion]
Replied On May 12, 2008 01:27 PM UTC

Hi Mark,

You can determine on a callback that the session has expired by the Aftercallbackresponsescript as mentioned in the code below:

protected void CallbackPanel1_CallbackRefresh(object sender, CancellableCallbackEventArgs e)


if (Context.Session.Timeout!=null)
//Session["ISTIMEOUT"] = false;
string szCookieHeader = Request.Headers["Cookie"];
if (Session.IsNewSession)
if ((null != szCookieHeader))
CallbackPanel1.AfterCallbackResponseProcessedScript = "window.location.rel='nofollow' href= 'Default.aspx'";


Please refer the sample in the link below which illustrates the above:


Please try running this and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon