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

  New Posts New Posts RSS Feed - login procedure (usercode,salt code etc.)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

login procedure (usercode,salt code etc.)

 Post Reply Post Reply
Author
netsonic View Drop Down
Newbie
Newbie


Joined: 30 January 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote netsonic Quote  Post ReplyReply Direct Link To This Post Topic: login procedure (usercode,salt code etc.)
    Posted: 20 March 2005 at 10:44am
Hi all

i want to learn how the forums login procedure functioning?

there is a usercode salt code and a encrypted password...
when we login with username and password what does the script do with usercode,salt code and encrypted password...


i am planning to make a site with jsp and want to do a similar login type with webwiz...

is there any document or something that i can understand the procedure???can anyone help mee

thanks

Burak
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: 20 March 2005 at 11:06am
the process for the login script is as follows.

the page is submitted.

- the username is queried against the database, to get the original password and salt code.

the inputted password by the user is encrypted using the form inoput value and the salt code.


then the database password is compared with the inputed value that has been encrypted. if the match the user has entered the correct password.

so we update the last login time, update the user_code with a new one, to prevent being logged in else where. and put the user_codew within a cookie.

then within the common.asp file the user_code is read in, and queried agaist the database to get the users details and the detals are then used to display , username etc.
Back to Top
netsonic View Drop Down
Newbie
Newbie


Joined: 30 January 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote netsonic Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2005 at 11:46am
thanks a lot for the answer...

but i didnt understand the salt code...
what is salt code for?why do we need this?and how its produced...its produced from the username??
Back to Top
netsonic View Drop Down
Newbie
Newbie


Joined: 30 January 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote netsonic Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2005 at 5:11pm
Now i understand the salt code...

The last thing is how we generate the usercode?
The usercode is changed sometimes or its produced once and its the same forever???

if we change it sometimes when & why do we need?



i will be very appreciated if u answer my detailed question...

Thanks

Burak
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: 21 March 2005 at 7:33pm
the user code is generated/ replaced quiute a few times.

so to answer a couple of your questions its created and then sometimes updated.

the user code consists of the username followed by a random value this makes the user_code unique.


this is gone often to prevent security holes.

on login it is changed to make sure you can only access the forum from that one location as the new user_code will be no good that is stored on other machines.

its also updated during an profile update. for a simular reason to the above.

also during activation of the account if email activation is enabled.

also when a username is changed by an administrator

also there maybe a few other places
Back to Top
netsonic View Drop Down
Newbie
Newbie


Joined: 30 January 2004
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote netsonic Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 12:37pm
thanks a lot that was exactly what i need
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.