Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 19.11.2003, 12:50   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default Frames, Redirection

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?
Reply With Quote
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 12:57.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.