AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 19, 2003, 12:50   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
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?
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:33.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link