Home | Advertising Info8 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Sunday, April 28, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Database Issues
 PowerASP Code Help Area : Classic ASP - Database Issues
Subject Info: Help my users are never logged out A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
N1n3
Newbie
Newbie
Avatar

Joined: June/09/2005
Location: United States
Online Status: Offline
Info: 1
Added: June/09/2005 at 1:57am | IP Logged Quote N1n3

I have site where when users close browser  it is not recognized in database therfore session never ends and they are seen as logged in all the time. any ideas as to what I could do.

 

I tried to  set a session.on_end event in the global.asa and then write code to be execute on that.... but i couldnt get it to work.

This is my first attempt and i will admit I am not sure I know what I am doing . LOL any help would be appreciated. 

 

 



__________________
Not afraid to ask
Back to Top View N1n3's Profile Search for other info by N1n3
 
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: June/09/2005 at 7:15pm | IP Logged Quote cwilliams

sorry but session.on_end event in the global.asa has been known to be buggy and not work

there is no good way I know of to do what you are trying to do



__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 
Sub_Hum_Ans-666
Newbie
Newbie


Joined: January/26/2006
Location: Australia
Online Status: Offline
Info: 2
Added: January/26/2006 at 7:34am | IP Logged Quote Sub_Hum_Ans-666

I suggest using cookies and not using global.asa
you can set the cookie to expire whenever you like (the next day or a week later, etc)

To create a cookie:

Response.Cookies("NAME_OF_COOKIE") = SOME_VARIABLE
Response.Cookies("NAME_OF_COOKIE").Expires=#December 31,2010#

To read a cookie:
varUsername=Request.Cookies("NAME_OF_COOKIE")

Sorry if I couldn't help
Good luck

Back to Top View Sub_Hum_Ans-666's Profile Search for other info by Sub_Hum_Ans-666
 
firas_TheGeek
Newbie
Newbie
Avatar

Joined: May/27/2006
Location: Oman
Online Status: Offline
Info: 28
Added: May/27/2006 at 8:15am | IP Logged Quote firas_TheGeek

iam dealling with the same prob, but i thought of a different way,

in the database i created a table for monitoring the users movement, each time the users surf through the pages it records the time, this way i can know when was the last time the user had moved in my site, so i wrote a procedure that will check that table for users that their last movment was an hour ago or more

and this procedure runs every time the login page was opened.

this way i would throw the users that havnt changed their page for more than one hour, as if they had closed the browser, or forgot it open for more than one hour

hope this helps

best regards



__________________
Firas S Assaad (TheGeek)
firas489@gmail.com
0096892166434
http://firas-thegeek.blogspot.com
Back to Top View firas_TheGeek's Profile Search for other info by firas_TheGeek Visit firas_TheGeek's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com