Link to home
Start Free TrialLog in
Avatar of gbougiakas
gbougiakasFlag for Greece

asked on

Creating a Cookie in Delphi 7 gets the wrong expiration time.

I am trying to create a cookie that expires 20 minute from now. This is the code I am using.

At system out I get
12/05/2009 11:50:17 now: 12/5/2009 11:50:17
12/05/2009 11:50:17 now+20: 12/5/2009 12:10:17

which is correct.

However when I check the expiration time of the cookie this is what I get:
15:10:21 which is 3 hours and 20 minutes from now.

What am I doing wrong?
Response.SetCookieField(MyCookies, '', '/', Incminute(Now,20), False);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial