Hello,
I am working on session handling for my project.
I have a parent aspx page which holds RadGrid. On RadGrid row click, new RadWindow opens new aspx page using javascript function -
function RowDblClick(sender, eventArgs) {
var wnd = window.radopen("url");
wnd.setSize(960, 700);
wnd.Center();
}
To get server know that session has expired, meta information header is used in each Page_Load event which refreshes page after 1 second of session timeout -
Response.AddHeader("Refresh",Convert.ToString((Session.Timeout * 60) + 1));
After refresh if there is new session, then page is redirected to Login page.
This woks fine until there is timeout when RadWindow is open on parent page. If Radwindow is open, after refresh due to session timeout it just close down itself and browser displays parent aspx page with RadGrid.
The problem is how and where server can know that RadWindow is closed (which event) and as RadWindow is closed server do not have any handle to it so how can parent aspx page redirected to login page. In short, how server can first close RadWindow on parent aspx page and then redirect parent aspx page to login page.
Thanks!
I am working on session handling for my project.
I have a parent aspx page which holds RadGrid. On RadGrid row click, new RadWindow opens new aspx page using javascript function -
function RowDblClick(sender, eventArgs) {
var wnd = window.radopen("url");
wnd.setSize(960, 700);
wnd.Center();
}
To get server know that session has expired, meta information header is used in each Page_Load event which refreshes page after 1 second of session timeout -
Response.AddHeader("Refresh",Convert.ToString((Session.Timeout * 60) + 1));
After refresh if there is new session, then page is redirected to Login page.
This woks fine until there is timeout when RadWindow is open on parent page. If Radwindow is open, after refresh due to session timeout it just close down itself and browser displays parent aspx page with RadGrid.
The problem is how and where server can know that RadWindow is closed (which event) and as RadWindow is closed server do not have any handle to it so how can parent aspx page redirected to login page. In short, how server can first close RadWindow on parent aspx page and then redirect parent aspx page to login page.
Thanks!