Lucee randomly generates new sessions using the JQuerys load () method

I have a web page that you enter into, which then creates a session variable that was checked at all subsequent calls to the page, and if it does not exist or does not match what is written in relation to the session identifier, you exit the page .


Code here: Application.cfm session setup:

 <CFAPPLICATION NAME="myAPP" APPLICATIONTIMEOUT="#CREATETIMESPAN(0,0,60,0)#" sessionTimeout=#CreateTimeSpan(0, 0, 20, 0)# sessionManagement="Yes"> 

Installed set of session variables:

 <CFLOCK TIMEOUT="30" THROWONTIMEOUT="no" TYPE="Exclusive" Scope="session"> <CFSET session.started = #ucase(dbGUID)#> </CFLOCK> 

Now the page also loads data into different DIVs every few seconds using the JQuerys load () method, from different backend pages. All this is great for some people who don’t have problems at all, but some people will work fine for everything from a few minutes to several hours, and then suddenly Lucee will create a new session, as a result of which the data will be downloaded back to the main page so that make the main page refresh to log in again. However, what happens is that the page is being refreshed and the original session still exists, so it is being used again and the person can then see the page data again. This can happen many times for some people and never for others.

I am sure that it is not personal, like trying it on different computers for the same person, it is normal on some, and not on others. Trying it directly on the web server (with the hosts file for the domain pointing locally), its fine and no problems. This is not like a load balancer, as it occurs both on and off the load balancer. Just to be clear, and not just one specific page that causes a new session, it can be any of those used, and also not caused by the first attempt to get to the page, since it could be accessed dozens of times before a new session is generated. Its also not timeouts, since the session timeout is set to 20 minutes, but this can happen within a minute from the initial session.

The question is why Lucy suddenly decided to create a new session (the old one still exists), and how can I stop it and / or bring it back using the original session again.

+7
jquery coldfusion cfml lucee tomcat
source share

No one has answered this question yet.

See related questions:

6
Lucee - new Coldfusion keyword not working
6
How can I disable client-specific variables in Coldfusion?
4
Lucee / ColdFusion - locks a session area in a cluster while accessing session variables
4
jQuery stops working after several calls to the load () method
3
Tomcat 6: Max. Session Downtime between instances
3
cflocation no longer works in CF10
2
Lucee session loss in erratic times
one
Lucee ORM no session for data source
one
What is the easiest method to generate perlin noise in Lucee?
0
Memory in Tomcat when starting Railo / Lucee

All Articles