Print Page | Close Window

Multiple Login Check

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10828
Printed Date: 31 March 2026 at 1:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Multiple Login Check
Posted By: meteor
Subject: Multiple Login Check
Date Posted: 11 June 2004 at 8:28am
I use Session to Login User . now I want to restric multiple Login With One ID on Two Or More Computers. can I use Application ? is there any other way ?how?

-------------
Sincerely
--------------------
http://www.TacPlusPlus.com - PowerFull Scripts For NTTacPlus



Replies:
Posted By: dpyers
Date Posted: 11 June 2004 at 11:41am

Neither way will be particularly reliable, but I'd use session_onstart and session_onend in the global.asa file to add/delete a user from an active users table and the session_onstart to also check if they are already in it with a different remote_addr or remote_host.

You can't reliably depend upon session_onend to execute so you'd also need something in the on_start event to check for time - e.g. if the user comes back on a different IP but it's been more than 20 minutes, delete the first entry and add him as new.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: meteor
Date Posted: 12 June 2004 at 4:26am
Ok So U use table For tracking Users Login ? can Use Memory For This Purpose?

-------------
Sincerely
--------------------
http://www.TacPlusPlus.com - PowerFull Scripts For NTTacPlus


Posted By: dpyers
Date Posted: 12 June 2004 at 1:01pm
Yes. You'd need memory space that's available across all sessions so you'd use Application level variables to do this. Probably by writing/deleting from an array of users established in the global.asa Application_OnStart subroutine. boRg uses Application level variables for this forum. If I recall correctly, there's some code in common.asp that would demonstrate how it's done.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Semikolon
Date Posted: 12 June 2004 at 5:06pm
and in includes/active_users_inc.asp and maybe activ_users.asp



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net