Login
`
Templates, Tools and Utilities
|
||
Icetips Article
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, 7:39 am This article has been viewed 35314 times.
|
|