]> git.datanom.net - qtadmin.git/blobdiff - rest_client.php
prepare for wblistadm server
[qtadmin.git] / rest_client.php
index 1857a1210c392e5dcf4fe8700d1868ef0d02b189..ed24278d4733f823a2fd35e3afa2ffaec27362e9 100644 (file)
@@ -32,7 +32,7 @@ if (! isset($_SESSION['ticket'])) {
     $response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '');
     if ($response['http_code'] >= 200 && $response['http_code'] <= 204) {
         $_SESSION['ticket'] = json_decode($response['content']);
-        $_SESSION['CSRFPreventionToken'] = 'CSRFPreventionToken='.$ticket->data->CSRFPreventionToken;
+        $_SESSION['CSRFPreventionToken'] = 'CSRFPreventionToken='.$_SESSION['ticket']->data->CSRFPreventionToken;
         $_SESSION['cookies'] = $response['cookies'];
     }
 } else {
This page took 0.052235 seconds and 5 git commands to generate.