SessionRotate()

edit

invalidate current session, creates a new session and migrate the data from the old session to the new.

SessionRotate( );

Returns: void

This function does not take any arguments.

Examples

edit
<cfset session.name = "lucee" />
<cfdump var="#session#" label="Before sessionRotate">

<cfset sessionRotate()/>
<cfset session.name = "Susi" /> <cfdump var="#session#" label="After sessionRotate">

Related System Properties / Environment Variables

  • LUCEE_SESSIONCOOKIE_ROTATE_UNKNOWN - Controls whether unknown CFML session cookies are automatically rotated. When `false`, unknown session cookies will not be rotated
    Type: boolean, Default: true

See also