Anonymous | Login | Signup for a new account | 2021-04-11 07:11 BST | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000728 | SiT! | portal | public | 2009-06-13 13:43 | 2009-08-16 14:39 | ||||
Reporter | kieran | ||||||||
Assigned To | paulh | ||||||||
Priority | normal | Severity | block | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 3.45 | ||||||||
Target Version | 3.50 | Fixed in Version | 3.50 | ||||||
Summary | 0000728: Portal entitlement blank | ||||||||
Description | On logging in, $_SESSION['entitlement'] is correct but after refreshing the page, the array just contains blank objects after that. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
paulh (administrator) 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. |
paulh (administrator) 2009-06-21 12:33 |
Probably don't want to use session_register as its deprecated in 5.3 and removed in PHP6 |
paulh (administrator) 2009-06-21 13:23 |
trunk r5487 serialises entitlements |
kieran (administrator) 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? |
paulh (administrator) 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 |
ivan (administrator) 2009-08-16 14:39 |
Released in 3.50rc1 |
![]() |
|||
Date Modified | Username | Field | Change |
2009-06-13 13:43 | kieran | New Issue | |
2009-06-21 11:37 | paulh | Note Added: 0001235 | |
2009-06-21 11:37 | paulh | Status | new => confirmed |
2009-06-21 12:33 | paulh | Note Added: 0001236 | |
2009-06-21 13:19 | paulh | Status | confirmed => assigned |
2009-06-21 13:19 | paulh | Assigned To | => paulh |
2009-06-21 13:23 | paulh | Note Added: 0001237 | |
2009-06-21 13:23 | paulh | Status | assigned => resolved |
2009-06-21 13:23 | paulh | Resolution | open => fixed |
2009-06-21 13:23 | paulh | Fixed in Version | => Current SVN |
2009-06-21 13:37 | kieran | Note Added: 0001239 | |
2009-06-21 14:23 | paulh | Note Added: 0001240 | |
2009-08-16 13:16 | ivan | Fixed in Version | Current SVN => 3.50 |
2009-08-16 14:39 | ivan | Note Added: 0001636 | |
2009-08-16 14:39 | ivan | Status | resolved => closed |
Copyright © 2000 - 2021 MantisBT Team |