Some more session Updates.

Contains some session updates that checks ip and browser and a simple
get user id function based on the session.