diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-15 08:54:54 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-15 08:54:54 +0000 |
commit | d3176c22e90e0a09b22790036f1f61fc926912c9 (patch) | |
tree | b944432cd2b93eae5f1426cb4937f7b8389bdff8 /modules | |
parent | 1cf10721654764b366f6b105e76da071aa3c7f66 (diff) | |
download | ampache-d3176c22e90e0a09b22790036f1f61fc926912c9.tar.gz ampache-d3176c22e90e0a09b22790036f1f61fc926912c9.tar.bz2 ampache-d3176c22e90e0a09b22790036f1f61fc926912c9.zip |
added little note on access add as to the defaults, fixed api to use session_length added check for session functions with redirect to /test.php on failure
Diffstat (limited to 'modules')
-rw-r--r-- | modules/vauth/session.lib.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/vauth/session.lib.php b/modules/vauth/session.lib.php index 36931d68..ef91a473 100644 --- a/modules/vauth/session.lib.php +++ b/modules/vauth/session.lib.php @@ -25,6 +25,13 @@ * and then contains the functions that the session handler references */ +// Quick check for the session functions if they don't exist redirect to /test.php +if (!function_exists('session_set_save_handler')) { + header("Location: " . Config::get('web_path') . "/test.php"); + debug_event('ERROR','Missing PHP Session Module','1'); + exit; +} + /* Always register the customer handler */ session_set_save_handler( 'vauth_sess_open', |