From 4bacc8b298e277a362914f133e90b5a2a60638f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n?= <Zoltán@zolij-pc.lan> Date: Thu, 17 Jul 2014 23:43:14 +0200 Subject: [PATCH] refresh token segitsegevel access token frissitese --- php/AuthSCHClient.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/AuthSCHClient.class.php b/php/AuthSCHClient.class.php index d20a128..f2636f9 100644 --- a/php/AuthSCHClient.class.php +++ b/php/AuthSCHClient.class.php @@ -30,8 +30,10 @@ class AuthSCHClient { } else { // load tokendata from session $this->tokens = unserialize($_SESSION['tokens']); - if($this->tokens->lastUpdate + 3600 < time()) + if($this->tokens->lastUpdate + 3600 < time()) { $this->reauthenticate(); + $_SESSION['tokens'] = serialize($this->tokens); + } } } else { $this->tokens = $tokens; -- GitLab