Jump to content

keeping UserID secure


jesushax

Recommended Posts

Hi to keep my UserID Safe for userse

 

when logged in as a user the userid comes from the sessionID

 

but when logged in as admin to edit the user the usersid getts passed through a querystring

 

ist there another way to do this or

 

is md5'ing a id a good idea?

 

Cheers

Link to comment
Share on other sites

I suppose if you ahve a site that has to be supper secure then yes md5 would stop injections as it would always return alphanumeric charactors.

 

I generally hold userid from the username entered and verify by selecting password from table where username = 'xxx' and then check the md5 pass in database against one sent therefore it's securly checked and sessionid will only be stored after user and pass match anyway therefore there will be no injection attacks further down the line as username is in a session and already validated.

 

Just my 2 pence.

 

regards

Liam

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.