Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Multiple Login Check
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple Login Check

 Post Reply Post Reply
Author
meteor View Drop Down
Groupie
Groupie
Avatar

Joined: 31 August 2003
Location: Iran
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote meteor Quote  Post ReplyReply Direct Link To This Post Topic: Multiple Login Check
    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
--------------------
PowerFull Scripts For NTTacPlus
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
meteor View Drop Down
Groupie
Groupie
Avatar

Joined: 31 August 2003
Location: Iran
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote meteor Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2004 at 4:26am
Ok So U use table For tracking Users Login ? can Use Memory For This Purpose?
Sincerely
--------------------
PowerFull Scripts For NTTacPlus
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2004 at 5:06pm
and in includes/active_users_inc.asp and maybe activ_users.asp
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.