summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorKarl Vollmer <vollmerk@ampache.org>2011-12-19 12:43:51 -0400
committerKarl Vollmer <vollmerk@ampache.org>2011-12-19 12:43:51 -0400
commit0c779f36f7362b43dd69b89160adeb5b8f772969 (patch)
treee9531f14e794eff46e2bec0bc5e97695d727aaf0 /lib/class/api.class.php
parent0c90811df455ed3f40cfc28dc5fd14c9bbe30cc3 (diff)
downloadampache-0c779f36f7362b43dd69b89160adeb5b8f772969.tar.gz
ampache-0c779f36f7362b43dd69b89160adeb5b8f772969.tar.bz2
ampache-0c779f36f7362b43dd69b89160adeb5b8f772969.zip
Switched Ping date to ISO 8601, added expire to handshake also ISO 8601
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r--lib/class/api.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php
index 7d1c8840..2c0fd01c 100644
--- a/lib/class/api.class.php
+++ b/lib/class/api.class.php
@@ -216,6 +216,7 @@ class Api {
echo xmlData::keyed_array(array('auth'=>$token,
'api'=>self::$version,
+ 'session_expire'=>date("c",time()+Config::get('session_length')-60),
'update'=>date("c",$row['update']),
'add'=>date("c",$row['add']),
'clean'=>date("c",$row['clean']),
@@ -247,7 +248,7 @@ class Api {
// Check and see if we should extend the api sessions (done if valid sess is passed)
if (vauth::session_exists('api', $input['auth'])) {
vauth::session_extend($input['auth']);
- $xmldata = array_merge(array('session_expire'=>date("r",time()+Config::get('session_length')-60)),$xmldata);
+ $xmldata = array_merge(array('session_expire'=>date("c",time()+Config::get('session_length')-60)),$xmldata);
}
debug_event('API','Ping Received from ' . $_SERVER['REMOTE_ADDR'] . ' :: ' . $input['auth'],'5');