?
Solved

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

Posted on 2009-05-12
1
Medium Priority
?
827 Views
Last Modified: 2013-11-23
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

0
Comment
Question by:gbougiakas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 21

Accepted Solution

by:
developmentguru earned 2000 total points
ID: 24364136
I would check to see that the server time is correct and that there are no time zone differences.  Cookies are stored on the client system and ASP code is run, for the most part, on the server.  I would like to at least be able to rule that our before making another attempt.  Let me know how it goes.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Suggested Courses
Course of the Month15 days, left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question