diff --git a/php/AuthSCHClient.class.php b/php/AuthSCHClient.class.php index 6de6abe2ba1e8e2d2e7809b71635e27f7a7035fd..a664507d30bd50c019b0ee18b7b497595ca6e1b9 100644 --- a/php/AuthSCHClient.class.php +++ b/php/AuthSCHClient.class.php @@ -16,11 +16,13 @@ class AuthSCHClient { if($checkLogin === true) { if(session_id() == '') { // session isn't started + session_set_cookie_params(3600,"/"); session_start(); } - if(!isset($_SESSION['authtoken'])) { + if(!isset($_SESSION['access_token'])) { // auth token not exists $this->authenticate(); + $_SESSION['access_token'] = $this->tokens->access_token; } }