Solved

logout.jsp with frames and invalidating sessions

Posted on 2003-11-10
4
1,196 Views
Last Modified: 2006-11-17
i have a banner and contents page which is composed of three frames, the banner,content, and the main page.
the logout link is in the content page,
the problem is, when the logout link is clicked, it must invalidate session and then go to an index page which is just a single/normal page.
thanks in advance.hope you can help me.:-)
0
Comment
Question by:kurisuchine22
4 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 20 total points
ID: 9714514
Set the target to "_top".

In a link, you would use:

<a href="AfterLogOut.html" target="_top">Switch to full screen</a>
0
 

Expert Comment

by:u9707118
ID: 9741694

In your main page you would have a link like so...
<a href="Logout.jsp" target="_top">Logout</a>


Then in Logout.jsp, include the scriptlet:
<% request.getSession(false).invalidate() %>


That's it.  i have the same thing in my project.

Hope ths helps,

Damian
0
 

Expert Comment

by:mrishmawy
ID: 9862643
you could do it using javascript:

<script language="JavaScript">
top.location.href = "afterLogout.html";
</script>

this would load afterLogout.html in the complete browser frame
0
 
LVL 1

Author Comment

by:kurisuchine22
ID: 10368542
thanks jimmack!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java.util.concurrent.Callable way of creating threads 2 105
method inner class 6 82
reflections, dynamic class loading 3 70
nested if has else if 13 94
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question