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 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. Link to comment https://forums.phpfreaks.com/topic/64432-session-id/#findComment-321280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.