jamiejackson
10/28/2024, 6:38 PMcfid cookie, even when defined as a session cookie (which normally deletes when the browser closes), can actually live for weeks, depending on how a user uses their browser. I have reasons that I don't want those cookies to live that long and I'd like to do housekeeping.
Can you think of any way to distinguish whether a cfid token is not associated with an existing session? I'd like to take the opportunity to delete that cookie in that case. I don't want Lucee to say, "okay, I'll just use this cfid token to create a new session with."cfsimplicity
10/29/2024, 10:52 AMthis.sessionCookie.timeout=-1 (which the docs say you can do) has been a bug for some time. Fixing it would make things so much simpler. In the meantime we set this.setClientCookies=false and write the cookies ourselves without the expires attribute.jamiejackson
10/29/2024, 5:21 PMcfid cookie if it's not associated with a current session.
as it is now, lucee will happily reuse a cfid from some ancient session and build a new session based on it. i don't want that. i want to get in the middle of that and either overwrite it with a brand new cfid or delete it.
i can work out the details if i figure out a way to detect whether the cfid being passed by the user is a current session or not.cfsimplicity
10/29/2024, 5:48 PMsessionRotate() do what you want? It will overwrite an existing cfid with a new value which then becomes the current session ID.jamiejackson
10/29/2024, 5:48 PMrodyon
10/29/2024, 5:58 PMjamiejackson
10/29/2024, 6:02 PMcfid cookie appears in the cookie scope during the request because it's about to send that cookie to the user. so it's hard to know whether that's an old cfid that the user is passing or whether it's a new one that lucee is offering.jamiejackson
10/29/2024, 6:03 PMsessionRotate() as another way to skin the cat (do it upon login) but i'm still curious about how to do the other thing.geoff
11/21/2024, 11:13 PM