• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
accessing a $_SESSION variable is failing

#1
I have a little code sitting in a php file that is in the assets directory. I know that is not normal, but this is where the vendor keeps it. When that code runs the line below is executed. 

$campaign=$this->$_SESSION['campaign'];

However,  $campaign yields null (as seen in the debugger). But when I look at it in the debugger, $_SESSION[campaign'] has the string "Apple" in it. How can I get the value of the $_SESSION into the variable $campaign?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
accessing a $_SESSION variable is failing - by richb201 - 07-08-2020, 04:27 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.