PDA

View Full Version : Set cookies externally


cancerkats
08-22-2003, 05:02 AM
Hello all,

Thanks for reading this. I am trying to do the following:

Send a link to a user via email and once they click on the link they would be take that page(which is on my server) and their ip address and name will be logged in.

once done, it would be redirecting them to my forum.

now, what i want to do here is set cookies on thier pc when they click the link sent to them in the email so that they would not have to go through the login page when they are being redirected to the forum and instead go into the forum directly.

ofcourse i can click on set cookies on their user CP.....but i would liek to cover teh part when they are using someone othr PC to check their email or if they have cleared teh cookies.....

pls tell me how i can set the cookies on their PCs

many thanks...

regards,
karthik

Issvar
08-24-2003, 03:23 PM
Just make a php page on your server that sets cookies based on user supplied data, like in the email give the link http://www.server.com/cookie.php?id=432&pass=8aj83jmas83mma93ka2 which would be the userid on the forum and the password hash.
Then in your php page set bbuserid and bbpassword cookies to the supplied values and redirect to the forum.