Sessions

The Session system node component carries data that belong to a browser session. This is key for remembering a signed in user, or the shopping cart.

This is PHP server side storage and it's not accessible in JavaScript. For client side session storage see sessionStorage.

To store something on the server-side for a browser session:

session::$data['foo'] = 'bar';

This value is accessible between page loads until removed.

Revisions

Recently Edited Articles
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.