hi all,
Thanks for all the support and help . Right now i am facing a problem.
I have a main page with six frames and each frame is loaded with same page having a farpoint spread with different data .
All spread has hyperlinks and when it is clicked , it will pop up a popup window .
The problem is with session expiry .
The popup also have spreads with hyperlink s . When some one clicks the hyperlink it will popup one more link .
Each page load i am checking session is null or not and session timeout is 30
When the third popup checks and find that session variable is empty .
The code below will execute
If Session("User_Id") = "" Then
strMsg = "<script language='javascript'>openWindowMsg('" & "Msg.aspx?MSG=User session has expired!" & "');</script>"
ClientScript.RegisterStartupScript(GetType(String), "strMsg", strMsg)
Exit Sub
End If
function openWindowMsg(page)
{
var op = window.opener;
op.opener = self;
op.close();
window.open(page);
self.opener = this;
self.close();
}
So what my intention is to open the new page showing a message that the " User session has expired" and in that page there is one more hyperlink
when got clicked launches the login page
But what is happening is the the mainpage is still there and message page has come .when i click on the link in Msg page it will redirect to login page. But at the same time Main page is still there
What was my plan when session got expired and on the call of the javascript function "openWindowMsg" all the windows including the main page has to be closed and messagepage.aspx is the only window that should be there .
How can i close those windows
Please help me
thanks & regards
nevviin