I would happy to know how to do this::
I have a register/login script
I have just added an activationprocess to it. when 0 account is not activated. when 1 account is activated. I want to give the user an activation link in an automaically generated email using php mail() function
in that i want to add a link like this
ActivateAccount?user=&code=[md5].
the activation code is created using the random function and is stored in the users table with the other info.
what i want:
When the user clicks on the link he/she msut be logged in and then a message opens that the account has been activated.
Can you please suggest an idea? I googled but it didn’t help much. How do i do it? Sessions?Cookies?