davla
09/13/2023, 10:23 AM<cfset this.ApplicationTimeout = CreateTimeSpan(1,0,0,0) />
<cfset this.SessionManagement = true />
<cfset this.SessionTimeout = CreateTimeSpan(0,1,0,0) />
<cfset this.ClientManagement = false />
<cfset this.SetClientCookies = true />
for session management (I don’t think it intentionally needs/uses client variables). We use the cftoken to maintain the session in the application. The cookies I see being set are as follows:
CF_CLIENT_[appname]_HC expires: 2023-12-12T10:16:34.970Z
CF_CLIENT_[appname]_LV expires: 2023-12-12T10:16:34.970Z
CF_CLIENT_[appname]_TC expires: 2023-12-12T10:16:34.970Z
cftoken expires: 2024-10-17T09:46:46.236Z
cfid expires: 2024-10-17T09:46:46.236Z
Why is cfid/cftoken not set to expire after just 1 hour as specified by this.SessionTimeout above?zackster
09/13/2023, 10:26 AMthis.SetClientCookies = truedavla
09/13/2023, 10:27 AMzackster
09/13/2023, 10:30 AMdavla
09/13/2023, 10:31 AMcfsimplicity
09/13/2023, 10:53 AMthis.sessionTimeout controls the timeout on the server. Cookies are client-side and just provide a hook into that server session. Their expiry is irrelevant really: once the server session has timed out, the cookie will stop working. I've never seen the need for long-lived cfid/token cookies though. They should expire on browser close, which is what J2EE jsessionid cookies do.Andreas
09/13/2023, 12:36 PMAndreas
09/13/2023, 12:40 PMdavla
09/13/2023, 1:05 PMsetClientManagement = true - changed to false and now not seeing the client cookies (except cfid/cftoken which we still need).davla
09/13/2023, 1:06 PMzackster
09/13/2023, 1:07 PMdavla
09/13/2023, 1:09 PMzackster
09/13/2023, 1:10 PM