{module_entitysession}

Description

Outputs the logged in user's session ID. This session ID is also stored in the cookie VSV[SiteID] that is created as an user logs into the front-end of the site.

Syntax

{module_entitysession collection="my_custom_collection_name" template=""}

Note: When using named parameters always wrap the individual parameters in double quotes. Also, do note that modules using named parameters do not work for campaigns just yet.

Parameters

This module can be rendered:

  • in plain text
  • using Liquid collections - this is the Liquid output tag you can use - my_custom_collection_name.session

Examples

  • {module_entitysession} - outputs the session ID in plain text, for example "fagfh1jmq5fhx5rj2c3drh3b7UsD_QP7XEYcoxf15E7ONbPmSOU%3d"
  • {module_entitysession collection="collection1" template=""} - in this case nothing will be displayed, however the module's Liquid tags will become available in the collection1 collection.

Syntax

{module_whosloggedin,loginUrl,logoutRedirUrl}

Examples

  • {module_entitysession} - outputs the session ID in plain text, for example "fagfh1jmq5fhx5rj2c3drh3b7UsD_QP7XEYcoxf15E7ONbPmSOU%3d"