Developer
Supported
Session Variables Plugin
Back to this add-on's main page
View Other Add-ons From PutYourLightsOn
Access Session Variables Set With $SESS->cache[‘var_name’] ?
General
|
Michael C.
|
| Posted: 02 May 2011 08:36 PM |
|
|
|
|
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
|
| Posted: 05 May 2011 06:37 AM |
# 1
|
|
|
Developer
|
try this:
<?php @session_start(); $_SESSION['session_test'] = 'blah'; ?>
|
|
|
|