Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic 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 February 4th, 2005, 09:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Most timeouts for sessions are 20 minutes. What if someone logs on, checks something, and then closes the browser? You'll have probably 19 minutes until session_onend fires and according to your DB the user is still on.

Read these posts: http://p2p.wrox.com/topic.asp?TOPIC_ID=1774


 
Old February 5th, 2005, 12:37 AM
Authorized User
 
Join Date: Dec 2004
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ALEX_GRIM
Default

NO, YOU CHANGE THAT IN YOUR IIS SETTINGS, AND IN YOUR GLOBAL.ASA(X) FILE. LOOK AT MINE ABOVE, I HAVE IT SET FOR ONE MINUITE. NOW YOU MAY THINK THAT ISN'T LONG ENOUGH, BUT IT DOESN'T LOG THEM OUT AFTER ONE MINUITE, IT SIMPLY CLOSES CANCELS THE SEEION FROM MEMORY AFTER ON MINUITE OF INACTIVITY, ONE THE USER IS ACTIVE AGAIN, THE SESSION RESUMES WERE THEY LEFT OFF, AS IF THEY WERE NEVER OFFLINE. I KNOW THIS WORKS BECAUSE I WAS TESTING IT WITH MY WEBSITE ( HTTP://WWW.MEMBERS.GRIMMUSIC.COM ) , AND I WOULD CHECK MY DB AS SOON AS SOMEONE LOGGED IN, (I HAD FRIENDS ACROSS THE COUNTRY HELP ME TEST IT FOR ACURRACY BY LOGGIN IN WHEN I TOLD THEM), IT PUT THE APROPRIATE ENTRY IN THE DABATASE(DB), AND AS SOON AS THEY WERE INACTIVE FOR ONE MINUITE, IT CHANGED THAT ENTRY APROPRIATELY, AND IF THEY MAKE A REQUEST AGAIN (EG, CLICK ANOTHER LINKK, OR DID ANYHTING THAT REQUESTS SOMETHING FROM THE SERVER), THEY WERE CHANGED BACK TO ACTIVE IN THE DB ENTRY. YOU CAN SPECIFY THE TIME YOU WANT A SESSION TO TIMEOUT AS ANYHTING YOU WANT, BUT I THINK IT'S A WASTE TO LEAVE IT A 20, BECAUSE THEUSER USUALY ISN'T THERE FOR 20 MINUITES, SO THERES NO NEED IN WASTING SYSTEM RESOURCES. THNKAS FOR YOUR QUESTION, IF ANYONE DOESN'T KNOW HOW TO CHANGED THE DEFAULT SESSION TIMEOUT IN IIS AND NOT JUST THE GLOBAL.ASA(X) FILE, LET ME KNOW AND I'LL POST A WALKTHROUGH.

GRIM@GRIMMUSIC.COM
WWW.GRIMMUSIC.COM





Similar Threads
Thread Thread Starter Forum Replies Last Post
find user is logout sanjeev jha Classic ASP Professional 0 December 8th, 2007 06:36 AM
I can't find User Id and password for Chapter 6 jellyjune BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 September 21st, 2007 02:39 PM
find if user /ip is connected ALEX_GRIM Classic ASP Professional 8 February 7th, 2005 02:36 AM
find if a user/ ip is connected ALEX_GRIM ASP.NET 1.0 and 1.1 Professional 6 February 4th, 2005 12:53 AM
I can't find bugs in my Login function. (User.cs) kaz VS.NET 2002/2003 5 December 7th, 2003 05:46 AM





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