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

Reply
 
Thread Tools

Frames, Redirection
Old 19.11.2003, 12:50   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 43
Posts: 896
Rep Power: 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




Реклама:
реклама

All times are GMT. The time now is 01:35.
Top

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