Uploaded image for project: 'Lucee Development'
  1. LDEV-769

sessionRotate() does not work when this.sessionCluster = true

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 4.5.2.018, 4.5.3.006
    • Fix Version/s: 5.1.1.40
    • Labels:
      None

      Description

      When using this.sessionCluster = true to have session persist in a database or cache , sessionRotate() just starts a new session and doesn't copy the existing session.

      component
      {
      	this.name = "sessiontest";
      	this.sessionmanagement= true;
      	this.sessionTimeout = createTimeSpan(0,1,0,0);
      	this.sessionStorage = "somedatasource";
      	// setting sessionCluster to true forces Lucee to use refresh the session from the sessionStorage
      	this.sessionCluster = true;
      	this.setClientCookies = true;
      
      	function onSessionStart()
      	{
      		// when a new session start, add a counter variables with value 1
      		session.counter = 1;
      	}
      
      	function onRequest()
      	{
      		// increment the counter session variable
      		session.counter++;
      		// echo the counter session variable. We expect this to be incremented on every request
      		echo(session.counter);
      		// rotating the session resets the session, but it should copy the session.
      		sessionRotate();
      	}
      }
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                jzuijlek Jonathan van Zuijlekom
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: