?
Solved

logout.jsp with frames and invalidating sessions

Posted on 2003-11-10
4
Medium Priority
?
1,236 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 60 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

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