Bugfix: session cookies were not set properly after browser restart.

Also, show message to the user if browser restart was detected (fixes #59)