Cookies / SessID?
Posted by MichaelC
|
Cookies / SessID? August 08, 2002 09:50PM |
Registered: 23 years ago Posts: 2 |
I'm creating a closed-door community for some close friends of mine. I'd like to have one login for the site, and have that login be used for the site AND phorum. Everything is working fine so far until I came across the fact that phorum uses SessID's, which I haven't read up on yet :)
Nonetheless, where is the code for phorum where the SessID's are assigned, and cookies created, so that I may be able to replicate it and have the cookie created before the user even touches the message board?
Thanks for any help.
Nonetheless, where is the code for phorum where the SessID's are assigned, and cookies created, so that I may be able to replicate it and have the cookie created before the user even touches the message board?
Thanks for any help.
|
Re: Cookies / SessID? August 09, 2002 11:13AM |
|
Re: Cookies / SessID? August 09, 2002 02:57PM |
Registered: 23 years ago Posts: 2 |
Here :
md5($username.$password.microtime());
That will make the same session ID that phorum uses.
And when you make that var, put it in a cookie:
SetCookie("phorum_auth", "$sessid", time()+86400*365);
And make sure you update your database!
update phorum_auth set sess_id='$sessid' where id=$userid";
"phorum_auth" is site specific, and as this code is not a good *patch* of some sort, its a makeshift model to replicate the cookie phorum uses, for your site, if your willing to edit the code yourself.
md5($username.$password.microtime());
That will make the same session ID that phorum uses.
And when you make that var, put it in a cookie:
SetCookie("phorum_auth", "$sessid", time()+86400*365);
And make sure you update your database!
update phorum_auth set sess_id='$sessid' where id=$userid";
"phorum_auth" is site specific, and as this code is not a good *patch* of some sort, its a makeshift model to replicate the cookie phorum uses, for your site, if your willing to edit the code yourself.
Sorry, you do not have permission to post/reply in this forum.