Dear Monks,
I used cookie.lib to insert and retrive cookies for my CGI/Perl e-commerce application. While I set the cookies to expire after three hours, the cookies lasted only for the current browser session.
Did I do anything wrong with the above codes? Any help or comment would be deeply appreciated. Thank you!($ss, $mm, $hh, $dom, $mon, $yr, $wkd, $doy, $idt) = gmtime(time + 155 +52000); @Mth = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec'); @Day = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); $SetYear = 1900 + $yr; $SetDay = $Day[$wkd]; $SetMonth = $Mth[$mon]; $SetDOM = sprintf('%02d', $dom); &SetCookies('HBL5USERID',"$userid"); &SetCookieExpDate("$SetDay, $SetDOM-$SetMonth-$SetYear $hh:$mm:$ss GMT +"); &SetCookieDomain('.healthbliss.net');
Best regards,
Patrick
In reply to inserting and using cookies by clickit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |