This class handles all of the session related stuff in Ampache it takes over for the vauth libs, and takes some stuff out of other classes where it didn't belong
This is seperated into it's own function because of some flaws in specific webservers *cough* IIS *cough* which prevent us from setting a cookie at the same time as a header redirect. As such on view of a login a cookie is set with the proper name
This auth method relies on HTTP auth from Apache This is not a very secure method of authentication defaulted to off. Because if they can load the page they are considered to be authenticated we need to look and see if their user exists and if not, by golly we just go ahead and created it. NOT SECURE!!!!!
This is called when you want to log out and nuke your session This is the function used for the Ajax logouts, if no id is passed it tries to find one from the session
This is called when you want to create a new session it takes care of setting the initial cookie, and inserting the first chunk of data, nifty ain't it!
This checks to see if the specified session of the specified type exists, it also provides an array of key'd data that may be required based on the type
This function sets the cache limiting to public if you are running some flavor of IE. The detection used here is very conservative so feel free to fix it. This only has to be done if we're rolling HTTPS