Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 November 16th, 2006, 07:18 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Log Out problem

Hi, :)

I have already tried the idea from the following link:

http://p2p.wrox.com/topic.asp?TOPIC_ID=36049

On every restricted page, i have included this link
<a href="signout.asp" target="_parent">Sign Out</a>

on signout.asp
<%
  Session.Abandon()
  Response.Redirect("index.htm")
%>

But it not working. I still can go in to restricted page by key the URL and press back button.

Am i miss out something?

Could anyone give me advice?

Thank you
Selina

 
Old November 20th, 2006, 08:14 AM
Registered User
 
Join Date: Aug 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to albertindian2000
Default

Hi you can always go there if you press the back button. Place page expires as -1 or something below time so that when it is accessing it will expire. More over use Javasceipt to check cookies (if used) and try to reload.

Albert Arul Prakash
http://www.bepenfriends.com
 
Old November 21st, 2006, 12:24 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not only press the back button will go back to the restrited page...key in the URL also can go in the restricted page after pressed signout.

What do u mean "Place page expires as -1"? isnt when onload the page?

Thank
Selina

 
Old November 21st, 2006, 08:50 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

If you are calling Session.Abandon() and afterwards you can still go to your restricted pages, its a logic problem. Meaning you are not correctly checking for the presence of some value.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle log on problem Hafiz Muhammad Mushtaq Oracle 1 October 18th, 2007 08:24 AM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
Problem With Restore Log prabhakaran SQL Server 2000 1 April 23rd, 2007 10:06 AM
Log Out Problem gkirk Classic ASP Databases 15 May 2nd, 2005 07:25 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM





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