Modified session creation to cope with non redirect case
fixing spaces
Merge pull request #1687 from sebv/chrome_fix

Modified session creation to cope with non redirect case