Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-05-12
1
Medium Priority
?
829 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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 nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 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