Reply to Re: MSIE 7 and cookies

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация