[ic] Cookie Setting Not Working

Mark Johnson interchange-users@lists.akopia.com
Tue May 29 10:25:01 2001


Jim Balcom wrote:
> 
> On Wed, 23 May 2001, David Totten wrote:
> 
> DT>>[set-cookie name=MV_USERNAME value="" expire="Tue, 03-Apr-2001 17:00:00 GMT"]
> DT>>
> DT>>Taken from some of the new 4.8 docs is this exerpt:
> DT>>
> DT>>
> DT>>2.69.2.3. expire
> DT>>
> DT>>Persistent cookies (that outlive a browser session) require an expiration date. The date must be a string of the form:
> DT>>
> DT>>"Wdy, DD-Mon-YYYY HH:MM:SS GMT"
> DT>>
> DT>>and the timezone must be GMT.
> DT>>
> DT>>If you do not supply a date, the cookie will disappear when the user closes the browser.
> 
> Supposing that you want the cookie to expire 10 hours after it is set?
> 

I believe you can pass the timestamp to set the expiry.

[set-cookie name=foo value=bar
expire="[calc]60*60*10+[time]%s[/time][/calc]"]

-- 
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912