![]() |
![]() | #1 |
Web developer Join Date: 09 2002 Location: Yerevan Age: 40
Posts: 896
Downloads: 1 Uploads: 0
Reputation: 9 | 0 | ![]()
I have complicated structure with frames: 2 rows, bottom frame has 2 cols, one of the cols has 2 rows. All this structure belongs to administrative interface and I want to check user identification on each action. I have such file that redirects page on the login page if session expires. But it processed in self document (in current frame), but I want that it will be in total window (parent). I tried to use javascript's window.location.href and parent.location.href but it doesn't work. Here is a part of check.asp: ----- myCookieSess = Request.Cookies("myCookieSess") function LogOut() <script language="JavaScript"> window.location.href = "Default.asp"; </script> 'Response.Redirect("Default.asp?mess=exp") end function ' SessionID Check if rs.RecordCount < 1 then call LogOut() end if ------ And an include in each document in frame structure: ----- <!--#include file="check.asp"--> ----- Any ideas? |
![]() |