summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-30 06:21:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-30 06:21:50 +0000
commit8e9678729653489a0839c14bc23d743e1509c319 (patch)
treeb9108bc20a1665aff56ee891a2873bfa463b2aa7 /lib/general.lib.php
parentff218616983683ccbe6623d0e66c248e94c0ea99 (diff)
downloadampache-8e9678729653489a0839c14bc23d743e1509c319.tar.gz
ampache-8e9678729653489a0839c14bc23d743e1509c319.tar.bz2
ampache-8e9678729653489a0839c14bc23d743e1509c319.zip
added your playlists with play link to the leftbar, no way to edit them yet
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index ea1556d3..5c724f18 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -164,13 +164,14 @@ function session_exists($sid,$xml_rpc=0) {
} // session_exists
-/*!
- @function extend_session
- @discussion just update the expire time
-*/
+/**
+ * extend_session
+ * just updates the expire time of the specified session this
+ * is used by the the play script after a song finishes
+ */
function extend_session($sid) {
- $new_time = time() + Config::get('local_length');
+ $new_time = time() + Config::get('session_length');
if ($_COOKIE['amp_longsess'] == '1') { $new_time = time() + 86400*364; }