Solved

logout.jsp with frames and invalidating sessions

Posted on 2003-11-10
4
1,221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java beans and EJBs 5 204
java cigar challenge 58 215
equalIsNot  challenge 43 183
ejb on wildfly 5 63
By reading this blog, MSPs will gain insight into how to improve communications with their clients as well as establish a more profitable business.
Deploying our service is a grudge match between customer benefits and customer pain. In one corner, rolling out fixes (yay!) and delivering new features (double yay!). In the other corner, training on new features (boo – sounds like work), and chan…

734 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