well, you could pass a parameter in the query string or in a session variable, and when the page loads it grabs that parameter/session and assigns it to its title bar?
I have a page done in forms. Each page checks to see if the session variable loggedin exits. If it doesn't ie. the session has timed out, the page redirects to a login page.
Currently the redirect is taking place inside the main frame. This temporarily messes up the interface after a correct login as the menu on the side is twice repeated.
I would like the redirect to goto the main browser window rather than the form it is coming from. Is this possible to do with page-behind code?
Just so we're on the same page:
you say you have a page done in "forms", but it sounds like what you mean is "frames", yes?
so when it directs, instead of showing up in the frame, you want it to show up in the entire browser, right?
shoot shoot shoot...I've done this before. We did a chat application over the web. The interface was made up of a frames page, and when the session timed out, the browser redirected to a page, no frames.
All my code is at work though.
If no one posts any reply (or if my memory doesn't kick in) by Monday, I'll post what I did to resolve the issue then.
I think you would have to be doing this in javascript with something like:
----------------------------------
top.document.location.href='somepage.html';
----------------------------------
this will break the frameset and make the referenced page open in the parent frame.
doh!
doh doh doh!!
Jack
Yes that is what I meant frames not forms. And yes we are on the exact same page here. After the session times out I need to break the out of the frameset
Hads
I know how do code the redirect itself in javascript but how do I get it to check the session before redirecting?
Thanks Jack but I think CodeStorm has solved it for me. I haven't tried his solution yet, but that is what I wanted, I had just thought you could do this from asp rather than javascript.
Hehe, no problem, though looking back on my code I've got it backwards - should redirect on false. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.