php - I cannot pull out $_SESSION values from a named session -


i have named session can call using this

print_r($_session['sessionname']); 

it returns following out of session variable.

myclass object ( [mycolumn] => myvalue64 [mycolumn2] => 47 [mycolumn3] => 19   ) 

however when try echo mycolumn this. doesn't display value.

echo $_session['myclass']['mycolumn']; 

i'm on php 5.3.3 if helps.

thanks

have tried:

echo $_session->mycolumn 

or in case

 echo $_session['sessionname']->mycolumn 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -