Just hoping I can get a breakdown of the cookie that is stored, as I am creating an authentication script for my entire site, which works very well except for one part which has me a little baffled.
When I view the cookie it shows the following contents
username|md5 hashed pasword|series of numbers
e.g.
admin|ga9x6cge14m4823964chw5f6clb3fc41|1113049725
The last series of numbers 1113049725 is causing some problems for me, I set the cookie with my own script as follows
setcookie('forumcookie', $cookName.'|'.$cookPass.'|'.'1113049725', time()+108000, '/', '', 0);
works good until the last series of numbers changes, once the forum is used to login, this does not fail login on my my script however if I login and set the above number on the site then go to the forum I have to reneter my password.
*****EDIT***** It is ok I think I have found a way around it,
$cookTime = time()+108000; setcookie('forumcookie', $cookName.'|'.$cookPass.'|'.$cookTime, time()+108000, '/', '', 0);
it all runs smooth!! |