Search code examples
phpsession-variablesexpressionengine

How can I set an ExpressionEngine session variable from PHP?


ExpressionEngine version is 1.6.8 and NOT upgradeable.

I would like to set a session variable in index.php and have that variable available to javascript in an ExpressionEngine template.

I have already tried using $_SESSION and global $SESS


Solution

  • The session_variables plugin allows this