session

Learn how to access the session instance.

This property holds a reference to the session instance.

Please refer to the Session API reference for more details.

Signature

This property has the following signature:

public get session(): Session

Example

Here is a basic example of how to use this property:

import croct from '@croct/plug'; croct.session.edit() .set('plan', 'starter') .save()