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"
	sessionStorage = "database"

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


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

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


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.

you solved the problem!!!
Thank you.