Sessions with > 5.5.0 not working
Permalink 1 user found helpful
I am currently running v5.5.0
If I upgrade to 5.5.2.1 or 5.6.x even, suddenly sessions no longer work.
We have a custom made customer login portal which uses sessions. It works under 5.5.0.
When I upgrade to any higher version, sessions are no longer stored on /var/lib/php/sessions
The file is created, but is empty.
It seems the session is in memory, because we see the values, but does not work as it should. When I revert back to v5.5.0 (using VMWare snapshots), it immediately starts working again.
What is different in 5.5.0 / 5.5.2.1 or how should we handle our sessions? we are at a loss here...
If I upgrade to 5.5.2.1 or 5.6.x even, suddenly sessions no longer work.
We have a custom made customer login portal which uses sessions. It works under 5.5.0.
When I upgrade to any higher version, sessions are no longer stored on /var/lib/php/sessions
The file is created, but is empty.
It seems the session is in memory, because we see the values, but does not work as it should. When I revert back to v5.5.0 (using VMWare snapshots), it immediately starts working again.
What is different in 5.5.0 / 5.5.2.1 or how should we handle our sessions? we are at a loss here...
Ahh whoops sessions are working fine, I thought the problem I had was odd. Check what "values" you have in your session array/s.
I was storing what I thought was a value in my session, but it was actually a select "object"- this post here helped me solve it:
http://www.concrete5.org/community/forums/customizing_c5/getting-th...
thanks to "catslikeus" and this code snippet:
$attr = $fv->getAttribute('attribute_handle');
if( gettype($attr) == "object"){ //must make sure this is an object before we try and call methods
$value = $attr->get('0')->getSelectAttributeOptionValue() ;
}
I was storing what I thought was a value in my session, but it was actually a select "object"- this post here helped me solve it:
http://www.concrete5.org/community/forums/customizing_c5/getting-th...
thanks to "catslikeus" and this code snippet:
$attr = $fv->getAttribute('attribute_handle');
if( gettype($attr) == "object"){ //must make sure this is an object before we try and call methods
$value = $attr->get('0')->getSelectAttributeOptionValue() ;
}
If I create a session, print it out on that web page it is fine. But then if I try to browse my website none of my pages will output anymore till I clear the session cookies. And these are pages that don't use the same controller or do any session work.
I wonder if I've used the names of some reserved sessions in c5.. as there is no documentation on c5's use of sessions or how it handles them one would assume you can just use them as per normal....right?! :s