Fix session cookie issues. Logging in example.