clickit has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inserting and using cookies
by guha (Priest) on Jan 24, 2006 at 14:41 UTC | |
by clickit (Initiate) on Jan 25, 2006 at 00:06 UTC | |
|
Re: inserting and using cookies
by davorg (Chancellor) on Jan 24, 2006 at 16:12 UTC | |
by clickit (Initiate) on Jan 24, 2006 at 23:58 UTC | |
by davorg (Chancellor) on Jan 25, 2006 at 09:38 UTC | |
|
Re: inserting and using cookies
by northwind (Hermit) on Jan 24, 2006 at 14:42 UTC |