Extended sessions

Sessions are a common way to save personal data on server side (for example a shopping basket). Eliom has a very simple and powerful session mechanism, where you can store data–but also services personalised for one user.

Besides sessions, Eliom also provides a way to store data or services for other scopes:

  • Client side process
  • Session group
  • Request

Example 1: Say you want to implement a game, and make it possible to have several instances of the game running in several tabs of the browser. The score is recorded on server side, as a "client side process" data.

Example 2: Grouping all the sessions for one user in a group of session makes possible to share a shopping basket shared between several devices (your mobile phone and your laptop for example).