Lucee 4.5.5.006 final
Java 1.8.0_144 (Oracle Corporation) 64bit
I’m not sure if this is the place or not, but I’m having trouble getting a session to persist between browser restarts.
I am sure this used to work, but somewhere in the sands of time it stopped.
So, the JSESSIONID cookie being served from my sites on a single server, has an expires of “Session” - so when the browser is closed (pretty much any browser), the cookie is deleted.
I think it used to have a max age, that means it would only be deleted when the max age was met or the site told it to end it.
The reason for this is so that for example a user puts something in a simple basket, the server has session management set to 12 hours, a user closes the browser, can re-open to the same site, and if still within that same 12 hours, and the session is still available on the server, the user can continue. If the session is not available on the server or the cookie has expired, a new session is generated.
So the question, how can I change the max-age of a jsessionid cookie?(preferably via cfml \ lucee on a per context basis)