diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index 91f700e7..81ee936c 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -878,7 +878,7 @@ class LSsession { self :: loadLSprofiles(); self :: loadLSaccess(); self :: loadLSaddonsViewsAccess(); - $_SESSION['LSsession']=self :: getContextInfos(); + self :: saveContextInfos(); } LStemplate :: assign('LSsession_username',self :: getLSuserObject() -> getDisplayName()); @@ -966,7 +966,7 @@ class LSsession { self :: loadLSaddonsViewsAccess(); LStemplate :: assign('LSsession_username',self :: getLSuserObject() -> getDisplayName()); LStemplate :: assign('globalSearch', self :: globalSearch()); - $_SESSION['LSsession']=self :: getContextInfos(); + self :: saveContextInfos(); return true; } } @@ -1260,6 +1260,21 @@ class LSsession { ); } + /** + * Save context information in PHP session + * + * @author Benjamin Renard