Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7934: Setting cookie does not honor string expire values

Reported by:
Jolle
Date:
12 Jan, 2015
Priority:
minor
Component:
Lasso 9
Version:
9.3
Keywords:
Platform:
Issue Report from Jolle (jolle@kulturfaktorn.se)
Company: Kulturfaktorn

Component: Lasso 9 Server
Version: 9.3
Source IP: 90.229.223.158

Detail
======
The documentation for web_response->setCookie in regards to the -expires param states:
"Any other object type is appended directly to the outgoing cookie header string"
This does not appear to be the case.
Setting a cookie like this:
web_response -> setcookie(
'hardcoded' = lasso_uniqueid,
-expires = 'Mon, 26 Jan 2015 10:46:18 GMT',
-path = '/'
)

will result in this sent to the browser:
Set-Cookie hardcoded=414F2A7D-F4DE-4111-9E8C-A3D3DC9E1106;expires=Mon, 12-Jan-2015 10:53:12 GMT;path=/

Comments

12 Jan, 2015 by Rachel Guthrie
the fact that the time changed... does it mean it actually read the time the cookie was created, rather than the time as set in the expiry?
13 Jan, 2015 by Rachel Guthrie
This ticket has been updated to Feature Request status as this was not previously supported.
It is related to fix #7933
23 Sep, 2015 by Eric Knibbe
The current docs don't quite make clear that if `-expires` is a string, it'll be cast into an integer for how many minutes the cookie should last. To set a specific date, cast it as a date object first.
web_response -> setcookie(
'hardcoded' = lasso_uniqueid,
-expires = date('26 Jan 2016 10:46:18 GMT'),
-path = '/'
)

returns:
`Set-Cookie hardcoded=C13CBCAC-69E0-4930-AB3D-31B28A198805;expires=Tue, 26-Jan-2016 10:46:18 GMT;path=/`

This'll be made clearer in the next docs update.
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft