Hai all,in my web application, i have two frames… one header and other the body frame…
i have a logout button i the header frame…
when i click on it the entire frameset must logged out…
also sometimes i open another frameset inside the body frame…
i use the following code:
this is inside a Action Hotspot, in which the target is given as “_top”
==========================================
url := “http://<server_name>/<db_name>.nsf”;
red:= “http://<server_name>/<db_name>.nsf/<page_name>?OpenPage”;
@URLOpen(url+“?Logout&RedirectTo=”+red)
==========================================
but i get a variety of results…
sometimes the entire frame logs out…
sometimes the body frame alone logs out…
sometimes a part of the frameset inside the body frame alone logs out…
is there anyway to logout completely out of the entire frameset…
thank you guys…
Cheers,
Venki.
Subject: How to Logout
Instead of redirecting to a particular page after the logout, redirect to an entire frameset. Continue to specify the target as “_top.” I’ve got a similar setup, with the exception that I use a link hotspot instead of an action hotspot. This shouldn’t make any difference, but if it does, try the link hotspot instead. Let me know if either of thes suggestions works.
Subject: RE: How to Logout
Hai Brent,thank you!
Yes! its working, the whole frameset is logged out…
=====================================
url := “http://<server_name>/<db_name>.nsf”;
red:=“http://<server_name>/<db_name>.nsf/testframe?OpenFrameset”;
@URLOpen(url+“?Logout&RedirectTo=”+red)
=====================================
but when i click “BACK”… i can access the page again…
is there a way to remove this…
like some WebSites will say “Section has expired”…
can that be done here???
Cheers,
Venki.
Subject: RE: How to Logout
man,
-
dont use @formula like @URLOpen for logout! why - because this formula will execute on server and if session expired meanwhile user should login to excute the formula that will log him out - not very clever, huh?
-
frames content cached probably because your browser settings are “automatic” rather than “every visit to page”
Subject: RE: How to Logout
Hey the “Every visit to the page” is on…but still the same thing continues…
can you suggest me some other code…
Venki.
Subject: RE: How to Logout
You could disable the Back button. I’ve put this in the JS Header before:if(history.forward() != null) self.location.reload();
Subject: How to Logout - ideas + a bug wokaround
man,
-
dont use @formula like @URLOpen for logout! why - because this formula will execute on server and if session expired meanwhile user should login to excute the formula that will log him out - not very clever, huh?
-
frames content cached probably because your browser settings are “automatic” rather than “every visit to page”