Reformatting
New method to force the session to end
Improved redirect
Some further logging