jaikar Posted August 11, 2007 Share Posted August 11, 2007 Hi can i confidently believe that a session id will be unique for all the users even if there are lakhs of users ? is there any possiblility that the session id can be same for 2 records ?.. i want to send an email to the user to verify their account after their registration. so i am sending the session id in the get and once they click that link it will take to a page where it will compare the session id with the one that is stored in the database.. is this the correct way? please advise Thanks Quote Link to comment https://forums.phpfreaks.com/topic/64432-session-id/ Share on other sites More sharing options...
Orio Posted August 11, 2007 Share Posted August 11, 2007 A new session id is given to a user in each visit, so no, it wont work. Just create a random unique hash to each user using his username/id-num and a constant salt. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/64432-session-id/#findComment-321280 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.