Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: Set Cookie template mod to allow passing date and time 1999-01-28 -- Chris Rybitski I've been experimenting with cookies. My research into the method 'SetCookie' of
class 'Httpclass' shows that the method receives 5 parms:
Name, Value, Date, Time, and Path (optional). In brief:
- 'Name' is the name of the cookie.
-'Value' is the value of the cookie. If the value is ''(null), the browser deletes the cookie.
-'Date' is the expiration date of the cookie.
-'Time' is the expiration time of the cookie
-'Path' is where to store the cookie on the client machine (this is best left alone, IMO).
The 'SetCookie' CODE template only exposes two of the parms -- Name and Value.
Date and Time have initial values of zero, so you are not required to pass them. The
method defaults to setting Date to (TODAY() + 28) and Time to CLOCK(). I thought it
might be useful to control Date and Time (this is still debatable
Today is November 21, 2024, 6:59 am This article has been viewed 35313 times.
|
|