Auth functions working for sessions

most auth functions working, logout doesn't successfully expire sessions
yet due to serialization fails I think