Concrete5 sessions and other thoughts
PermalinkConfig::get('concrete.site');
Now the other thing I am finding it hard to find any info on is handling sessions. Does Concrete5 v5.7 even have a session handling class? If so can anyone point me to the page in the API docs? I will be surprised (but also relieved that I am not going mad) to find that we should be messing around with sessions by just chucking stuff at $_SESSION like in the good old days of native hackery?? Particularly with all the change to support namespacing in 5.7 it would seem mad that there wasnt a core method to handle namespacing variables in $_SESSION. Any ideas anyone?
I still cant see any method for setting/getting user session data.. Is there anything to handle this?
Thanks.
$_SESSION['some_key']='some_potentially_dangerouns_value';
https://github.com/concrete5/concrete5/blob/master/web/concrete/star...
For further bit of clarity what I expected to see was an equivalent controller method to
$this->post();
$this->session();
use \Symfony\Component\HttpFoundation\Session\Session as SymfonySession; ... $session = new SymfonySession(); $session->set('package.context.param',$value); $val = $session->get('package.context.param'); $session->remove('package.context.param');
ChadStrat
http://www.concrete5.org/api/source-class-Concrete.Core.Session.Ses...
And for handling session from db
https://www.concrete5.org/documentation/how-tos/developers/handle-se...
And for enabled database from db
http://www.concrete5.org/documentation/how-tos/developers/enable-da...