[docs] Change in SetCookieTag made by Jeff Dafoe
Wiki Watch
docs@icdevgroup.org
Thu Dec 19 15:10:00 2002
You can visit the live page at this URL:
http://www.icdevgroup.org/i/doc/wiki/SetCookieTag.html
--- tmp/sEXdvbeL:209.215.55.95.previous Thu Dec 19 15:09:25 2002
+++ tmp/sEXdvbeL:209.215.55.95.current Thu Dec 19 15:09:25 2002
@@ -101,3 +101,14 @@
the Catalog directive). This ensures that the cookie will be
visible regardless of how the end user returns to your catalog.
+Tips
+
+You can use the time tag in conjunction with the set-cookie tag to set the expiration date relative to the current date.
+
+ [set-cookie
+ name=mycookie
+ value="the value"
+ expire="[time gmt=1 adjust='+2190']%a, %m-%b-%Y %H:%M:%S GMT[/time]"
+ ]
+
+In the example above, the adjustment of +2190 will set a cookie expiration of 2190 hours forward from the current date.