App gets a new CFID every time you switch pages [solved]

I’m using session management and switched it on in my application.cfm:

<cfapplication name="Portal"
	setclientcookies="No"
	setdomaincookies="No"
	clientmanagement="No"
	sessionmanagement="Yes"
	sessionStorage = "database"
	sessiontimeout="#CreateTimeSpan(0,0,30,0)#">

In my application, I give out the CFID at each page break. At the same time, I had to realize that every time I change pages, I get a new CFID and also lucee insert a new line into the cf_session_data table.
What could be wrong?

Thank you

Michael

Sorry:
Version Lucee 5.2.7.62
Betriebssystem Windows Server 2012 R2 (6.3) 64bit

Remote IP 127.0.0.1
Host Name 127.0.0.1
Servlet Container Apache Tomcat/8.5.11
Java 1.8.0_121 (Oracle Corporation) 64bit
Architecture 64bit

setclientcookies="No"

Are you manually setting the cookie anywhere else in your app? Otherwise every page will start a new session.

I don’t want to save the info into cookies. I want to save them into the database.
Do I need the clientcookies anyway?

It’s not saving the session into the cookie, it’s saving that in the DB.

The setClientCookies tells Lucee to write a cookie containing the CFID to the browser, which is then passed on subsequent pages allowing the session to be picked up each time.

So if you setclientcookies=“yes” then you should see sessions persist across requests.

Hi,
you solved the problem!!!
Thank you.

Michael