Retval
Scopes and redirect
Exceptions
Looking inside ticket
Cookies
Gems
Error page
Checking for cookies
Logic boom
Login redirect
Tidy up