|
Posted by R. Rajesh Jeba Anbiah on 02/04/07 07:17
On Feb 1, 5:45 am, "Ike" <r...@hotmail.com> wrote:
> I have a username/sid pair for typical authentication. That is, for someone
> signing in under a given username, a sid is created, saved in both a cookie
> and the db on the server. This I am doing as follows:
>
> $timer = md5(time());
> $sid = $UserID . "+" . $timer. "+" . $country;
> SetCookie("ggcookie", $sid, time() + 86400 * 10000); //Set Cookie
> for 10000 days
<snip>
Do not reinvent the wheels; use PHP's own session--preferrably
with db based handler.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|