Skip to content
Snippets Groups Projects
Commit c3411afa authored by Janega Zoltán's avatar Janega Zoltán
Browse files

session kezelés

parent 5c738b84
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment