Solved

logout.jsp with frames and invalidating sessions

Posted on 2003-11-10
4
1,182 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A Short Story about the Best File Recovery Software – Acronis True Image 2017
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now