Commit c3411afa authored by zolij's avatar zolij

session kezelés

parent 5c738b84
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment