diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 18:42:14 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-28 21:46:00 -0500 |
commit | fbbb015950cbac84e423d55a2bb6910ddfc10df6 (patch) | |
tree | a0fe4c38c462e25575c3af2a216b85acaad4bd73 /play | |
parent | 0451840fa34dfcffd86a00be8dbda9e4abd3f4d3 (diff) | |
download | ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.tar.gz ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.tar.bz2 ampache-fbbb015950cbac84e423d55a2bb6910ddfc10df6.zip |
Use Session for stream sessions
Diffstat (limited to 'play')
-rw-r--r-- | play/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/play/index.php b/play/index.php index 9c22f909..a6638e0c 100644 --- a/play/index.php +++ b/play/index.php @@ -86,7 +86,7 @@ if (Config::get('require_session')) { if (!Config::get('require_localnet_session') AND Access::check_network('network',$GLOBALS['user']->id,'5')) { debug_event('play', 'Streaming access allowed for local network IP ' . $_SERVER['REMOTE_ADDR'],'5'); } - elseif(!Stream::session_exists($sid)) { + else if(!Session::exists('stream', $sid)) { debug_event('UI::access_denied', 'Streaming access denied: ' . $GLOBALS['user']->username . "'s session has expired", 3); header('HTTP/1.1 403 Session Expired'); exit; @@ -94,7 +94,7 @@ if (Config::get('require_session')) { // Now that we've confirmed the session is valid // extend it - Stream::extend_session($sid,$uid); + Session::extend($sid, 'stream'); } |