Plugin

Developer
Supported

EE 1
EE 2
Session Variables Plugin

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Access Session Variables Set With $SESS->cache[‘var_name’] ?

General

Michael C.
Michael C.

How come the following doesn’t output “blah” (PHP set to Input)? Is there any way to get your plugin to read the session data set by that PHP function?

<?php
global $SESS;
$SESS->cache['session_test''blah';
?>

{exp
:session_variables:get name='session_test'} {!-- doesn't show "blah" --} 
Ben @PutYourLightsOn
# 1
Developer
Ben @PutYourLightsOn

try this:

<?php
@session_start();
$_SESSION['session_test''blah';
?>