X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=planetlab%2Fincludes%2Fplc_session.php;h=4c42375866779cec0052e4185c533c2cf9b3c462;hp=1afbc7a2d02f6a827b973622874674c3b2940a2d;hb=bbde0e199cce8cc4c17d301bd0141e4a759f4a64;hpb=2304abc8653604cf423548101fc916e1639eb983 diff --git a/planetlab/includes/plc_session.php b/planetlab/includes/plc_session.php index 1afbc7a..4c42375 100644 --- a/planetlab/includes/plc_session.php +++ b/planetlab/includes/plc_session.php @@ -58,13 +58,14 @@ class PLCSession 'AuthString' => $pass)); // Authenticate user and get session key - $session = $api->GetSession(); + $seconds_to_expire = (24 * 60 * 60 * 14); + $session = $api->GetSession($seconds_to_expire); if (!$session) { - return NULL; + return NULL; } // Change GetSession() at some point to return expires as well - $expires = time() + (24 * 60 * 60); + $expires = time() + $seconds_to_expire; // Change to session authentication $api->auth = array('AuthMethod' => "session", 'session' => $session);