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 December 2nd, 2004, 02:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try to display what is there in session("logged") after session is abandoned. Do you still see it as YES?

_________________________
- Vijay G
Strive for Perfection
 
Old December 2nd, 2004, 08:55 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

u try with by writing response.expires=-2000 in the above of asp page.

bye.

 
Old December 2nd, 2004, 08:57 AM
Authorized User
 
Join Date: Dec 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok. I have found that the value of the session does change after you log out. But when you go back to the admin page the value goes back to yes. But if you refresh the page it changes and goes to the log in page.

 
Old December 2nd, 2004, 12:10 PM
Authorized User
 
Join Date: Nov 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by gkirk
 Ok. I have found that the value of the session does change after you log out. But when you go back to the admin page the value goes back to yes. But if you refresh the page it changes and goes to the log in page.

Hey Dear Brother,

I went on the link u have mentioned and found out that your pages are working perfectly...yes the value changes to "yes" after succesfully login...and all of the pages are protected..i copied the link and tried to visit the page from new browser window but it send me to log in page...which shows it is working fine...

But yes when i logged out and pressed my browser back button i got yes again mentioned at the top...yes you are rite...this must be solved if you have used session.abandon() but as you have said you did it...i dont know what is not making it signing off..:(

If you can mail me your 2 or 3 pages of log out and admin i can check it...i will try my level best...

Or if you can plz paste the code of the pages here mentioning the name of the pages would be a better choice...

I will check in my project and will let you know how i have protected my pages.....but i m not getting the thing of assiging yes to session..kindly paste ur code!

Hey try to assign "no" to the session at the signout page as you have assigned "yes" to the session in login page..
Farzan Q.
BS(TeleCommunication)
Iqra University.
 
Old December 5th, 2004, 09:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Gkirk,

On all pages that are prior to LOGOUT page, within the <BODY> tag set its ONLOAD()="Javascript:history.go(1);", so that when the user tries to hit the back button, it always takes him back to the same page from where he hits the back button and doesn't let him go back after logout, thus avoids re-initiating the session. This should solve your problem.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old May 2nd, 2005, 07:25 AM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to arif_iq
Default

Yep, it's a great solution Vijay.

Regards
Mohammed Arif
Web Architect
http://www.mohammedarif.com





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 future Classic ASP Databases 3 November 21st, 2006 08:50 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.