Session handling is now working for multiple windows.