Coding with SPIP 2.1
SPIP 2.1 Technical Documentation

> > > > #SESSION_SET

#SESSION_SET

The #SESSION_SET{parameter, value} tag is used to define session variables for a visitor, which can then be retrieved using #SESSION{parameter}.

Example

Define a flavour as vanilla, and then retrieve it.

  1. #SESSION_SET{flavour,vanilla}
  2. #SESSION{flavour}

Download