Save $_SESSION to database

Save the session save data to the database and retrieve it.