Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 16th, 2004, 02:05 AM
Authorized User
 
Join Date: Nov 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default session.abandon!!

hi,

after i logout from the main page, i can access to the previous page by click on the back button. i have actually include a line to kill all my session in my logout script:

<%
       'reset all session to empty
    session("userid") = ""
       session.abandon
       response.redirect "default.asp?opt=1"
%>

so how can i do to make sure that after i clicked on the back button it will not go back to the previous page.

advanced thanks for those who can provide help.

 
Old April 16th, 2004, 12:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

There are different ways to do that. See thus URL http://developer.irt.org/script/311.htm

But I use this one.

<body onLoad="history.go(+1)">

put it on the page where you dont want it to Go.

Hope that helps.

Cheers!

-Vijay G





Similar Threads
Thread Thread Starter Forum Replies Last Post
session.abandon() sarah lee ASP.NET 1.0 and 1.1 Basics 4 December 11th, 2006 06:10 PM
Logout and Session.Abandon() fskilnik Classic ASP Basics 6 October 25th, 2005 05:17 PM
Session.Abandon problem r_ganesh76 General .NET 13 October 4th, 2004 11:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.