Solved

logout.jsp with frames and invalidating sessions

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jersey maven project error 7 142
getting Http 404 error in jsp forms 8 81
own marker interface 1 57
runtime exception 2 41
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 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