<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8341</bug_id>
          
          <creation_ts>2006-04-12 10:43:44 -0700</creation_ts>
          <short_desc>Relative cookie exipiration handling seems wrong</short_desc>
          <delta_ts>2008-11-28 13:15:25 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>312.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="peter r">pdfrichard</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>brano</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39029</commentid>
    <comment_count>0</comment_count>
    <who name="peter r">pdfrichard</who>
    <bug_when>2006-04-12 10:43:44 -0700</bug_when>
    <thetext>I have a separate web server host with a page setting a cookie with an expiration of +5 minutes. Safari would not except this cookie at all while Mozilla would and examining the cookie in Mozilla would show the cookie had an expiration of about 5 minutes in the future. 

Using another cgi program with the exact same login script, but with +1day expiration worked fine in Safari. This clued me in to a possible explanation. Safari was using the other host&apos;s clock (slow by an hour) for setting the relative offset when it should be using it&apos;s own host clock!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48959</commentid>
    <comment_count>1</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-07-09 13:46:54 -0700</bug_when>
    <thetext>Reporter, do you have a way for us to reproduce this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23208</commentid>
    <comment_count>2</comment_count>
    <who name="Branislav Sott">brano</who>
    <bug_when>2007-02-15 06:24:07 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Reporter, do you have a way for us to reproduce this issue?
&gt; 
[Safari Version 2.0.4 (419.3),PPC,10.4]

We have a server with a site and it&apos;s clock is set to GMT(UTC).
We are in GMT+1 time zone, and using a cookie which should time out after 1 hour.
When I do something (log in), cookie is set (is visible in the cookie list in setting), but after closing the session it vanishes.

The same would happen it the client&apos;s time would be one hour in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23212</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-02-15 08:27:13 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; When I do something (log in), cookie is set (is visible in the cookie list in
&gt; setting), but after closing the session it vanishes.

How are you &quot;closing the session&quot;?  Are you quitting the browser, or logging out of the site?

I recall that setting a certain flag on a cookie (security?) will prevent it from being persisted to disk, e.g., it&apos;s only stored in memory, so that when the browser quits it will be removed.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100624</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-11-28 13:15:25 -0800</bug_when>
    <thetext>No response in a long time, closing.

In any case, cookie handling is not part of open source WebKit, so bugs should be filed to Apple via &lt;http://bugreport.apple.com&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>