Skip to content

CookieEngine.Expires

Andrew Lambert edited this page Jan 3, 2023 · 3 revisions

CookieEngine.Expires

Method Signatures

 Function Expires(Index As Integer) As Date
 Sub Expires(Index As Integer, Assigns NewExpiry As Date)

Parameters

Expires(Integer) As Date

Name Type Comment
Index Integer The index of the cookie whose expiration date is to be read.

Expires(Integer, Assigns Date)

Name Type Comment
Index Integer The index of the cookie whose expiration date is to be updated.
NewExpiry Date The new expiration date of the cookie.

Return value

The expiration date the specified cookie. If the cookie didn't specify an expiration date (i.e. it's a session cookie) then the return value is Nil.

Remarks

Gets and sets the expiration date of the specified cookie. The earliest valid expiration date is 1-1-1970 00:00:00 GMT. You can convert a cookie into a session cookie by setting its expiration date to Nil.

See also