redmine

Fixed error with already started sessions

@@ -34,7 +34,9 @@ use OAuth2\Token; @@ -34,7 +34,9 @@ use OAuth2\Token;
34 class Session implements DataStore 34 class Session implements DataStore
35 { 35 {
36 public function __construct() { 36 public function __construct() {
37 - session_start(); 37 + if (session_status() == PHP_SESSION_NONE) {
  38 + session_start();
  39 + }
38 } 40 }
39 41
40 /** 42 /**