Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Logging in from multiple locations
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Logging in from multiple locations

 Post Reply Post Reply Page  <12
Author
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2004 at 6:27am
Originally posted by Patrick Melton Patrick Melton wrote:

You can just comment it out so it looks like this:

'For extra security create a new user code for the user
   strUserCode = userCode(strUsername)

   'Save the new usercode back to the database
   'rsCommon.Fields("User_code") = strUserCode
   'rsCommon.Update



this will not work. the code below is what you need. The code above still creates a new usercode, and making it so you wont be able to login at all.


'For extra security create a new user code for the user
   strUserCode = rsCommon("User_code")

   'Save the new usercode back to the database
   'rsCommon.Fields("User_code") = strUserCode
   'rsCommon.Update


use this code. its the bold section that is needed, as you need to get the usercode from the database.


Back to Top
ndamico View Drop Down
Groupie
Groupie
Avatar

Joined: 03 September 2003
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote ndamico Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2004 at 1:17pm

dj air-

thank you!  that worked.  much apprecaited!

Back to Top
Patrick Melton View Drop Down
Newbie
Newbie


Joined: 07 October 2003
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Patrick Melton Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2004 at 1:58pm

I disagree dj air - why would you change that line? You don't need to read it in at all. First, because it's read in directly above, and secondly because you're not going to do anything with it.

Basically, all you need to do is comment out these two lines:

   'rsCommon.Fields("User_code") = strUserCode
   'rsCommon.Update

I've done that and not modified anything else and it works perfect.

Back to Top
Patrick Melton View Drop Down
Newbie
Newbie


Joined: 07 October 2003
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Patrick Melton Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2004 at 2:08pm

dj air -

My apologies - you were right. My site partner had added that line up above - it wasn't in the original code.

So do what he said. I'm a moron.

Back to Top
Cerebus View Drop Down
Newbie
Newbie
Avatar

Joined: 14 March 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cerebus Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2004 at 10:34pm
I have a question on this - it can be disabled but highly suggested not to?  What loophole exactly does this allow?  We're receiving several complaints about this feature from dual box users, but if disabling it will leave us open to some dangerous hack, then they can live with it.
 
If it's simply being worried about an account being logged in more than once, then I'd tend towards modding it out.
 
Thanks for any explanation.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2004 at 5:50am
yes its because people can be logged in more than 1 place,

if you want ot disable it, refer to my last post on page 1, that shows what needs to be done to disable it, it is advised not to but you can.
Back to Top
 Post Reply Post Reply Page  <12

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.