|
 |
asp_web_howto thread: Simple Frames Problem
Message #1 by Bernard Beegle <BBeegle@m...> on Wed, 30 Jan 2002 11:39:53 -0500
|
|
Hi All,
I'm new to ASP, but getting far in the short term. I've been troubled by
frames. When the user logs into the application (I use session vars instead
of cookies) the application establishes a 3 section (side menu, top banner,
and main body) frameset.
The problem is when the user times out (I want this intentionally for
security) or logs out of the application the frame set stays put. I want to
clear the frames. So for example:
A user login in. Then goes to lunch. Comes back to continue but has timed
out. The application is set up if a user is timed out that they are
automatically redirected to the login screen. Problem: The login screen
does not use frames. Solution: Clear the frame at the start of a login
page. But How?
Thanks in advance,
Bernie
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 30 Jan 2002 16:45:55 -0000
|
|
this can only be done from client side. In your login page do something
like this:
<SCRIPT LANGUAGE="javascript">
if(window.top.location.href!=window.location.href){
window.top.navigate(window.location.href);
}
</SCRIPT>
-----Original Message-----
From: Bernard Beegle [mailto:BBeegle@m...]
Sent: 30 January 2002 16:40
To: ASP Web HowTo
Subject: [asp_web_howto] Simple Frames Problem
Hi All,
I'm new to ASP, but getting far in the short term. I've been troubled by
frames. When the user logs into the application (I use session vars instead
of cookies) the application establishes a 3 section (side menu, top banner,
and main body) frameset.
The problem is when the user times out (I want this intentionally for
security) or logs out of the application the frame set stays put. I want to
clear the frames. So for example:
A user login in. Then goes to lunch. Comes back to continue but has timed
out. The application is set up if a user is timed out that they are
automatically redirected to the login screen. Problem: The login screen
does not use frames. Solution: Clear the frame at the start of a login
page. But How?
Thanks in advance,
Bernie
$subst('Email.Unsub').
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #3 by "Ken Schaefer" <ken@a...> on Thu, 31 Jan 2002 15:55:46 +1100
|
|
Frames are a client-side thing created by using HTML <frame> tags. The
server-side ASP knows nothing about the frames you have created on the
client-side.
What you could do is use some client-side code on the login page to "bust"
out of the frameset if the page is contained within a frameset:
<script type="text/javascript">
<!-- //hide from older browsers
if (self != top) top.location = self.location
// end hiding -->
</script>
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Bernard Beegle" <BBeegle@m...>
Subject: [asp_web_howto] Simple Frames Problem
: Hi All,
:
: I'm new to ASP, but getting far in the short term. I've been troubled by
: frames. When the user logs into the application (I use session vars
instead
: of cookies) the application establishes a 3 section (side menu, top
banner,
: and main body) frameset.
:
: The problem is when the user times out (I want this intentionally for
: security) or logs out of the application the frame set stays put. I want
to
: clear the frames. So for example:
:
: A user login in. Then goes to lunch. Comes back to continue but has
timed
: out. The application is set up if a user is timed out that they are
: automatically redirected to the login screen. Problem: The login screen
: does not use frames. Solution: Clear the frame at the start of a login
: page. But How?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |