For the complete documentation index, see llms.txt. This page is also available as Markdown.

SessionRotate

Creates a new session (using new session ids) and copies session scope into this new session, then invalidates the old session.

Method Signature

SessionRotate()

Arguments

This function does not accept any arguments

Examples

Rotate the current session (create a new one)

sessionRotate();
writeOutput( "session rotated" );

Result: session rotated

Last updated

Was this helpful?