SiT! Bugs - SiT!
View Issue Details
0000728SiT!portalpublic2009-06-13 13:432009-08-16 14:39
kieran 
paulh 
normalblockhave not tried
closedfixed 
3.45 
3.503.50 
0000728: Portal entitlement blank
On logging in, $_SESSION['entitlement'] is correct but after refreshing the page, the array just contains blank objects after that.
No tags attached.
Issue History
2009-06-13 13:43kieranNew Issue
2009-06-21 11:37paulhNote Added: 0001235
2009-06-21 11:37paulhStatusnew => confirmed
2009-06-21 12:33paulhNote Added: 0001236
2009-06-21 13:19paulhStatusconfirmed => assigned
2009-06-21 13:19paulhAssigned To => paulh
2009-06-21 13:23paulhNote Added: 0001237
2009-06-21 13:23paulhStatusassigned => resolved
2009-06-21 13:23paulhResolutionopen => fixed
2009-06-21 13:23paulhFixed in Version => Current SVN
2009-06-21 13:37kieranNote Added: 0001239
2009-06-21 14:23paulhNote Added: 0001240
2009-08-16 13:16ivanFixed in VersionCurrent SVN => 3.50
2009-08-16 14:39ivanNote Added: 0001636
2009-08-16 14:39ivanStatusresolved => closed

Notes
(0001235)
paulh   
2009-06-21 11:37   
This is due to the entitlement being an object, to store an object in a session it needs to be serialised/unserialised (see http://php.net/manual/en/language.oop.serialization.php [^]) if we use session_register instead this does the serialisation for us.
(0001236)
paulh   
2009-06-21 12:33   
Probably don't want to use session_register as its deprecated in 5.3 and removed in PHP6
(0001237)
paulh   
2009-06-21 13:23   
trunk r5487 serialises entitlements
(0001239)
kieran   
2009-06-21 13:37   
Cheers for the fix Paul, but how come it's now an object? It was an array last release was it not?
(0001240)
paulh   
2009-06-21 14:23   
Its always been an object from what I can tell (going all the way back to 3.35), Its seems like 3.45 was the first time we used $_SESSION['entitlements'] else where
(0001636)
ivan   
2009-08-16 14:39   
Released in 3.50rc1