Switched to cookieSession instead of session for session mgmt.

One more attempt at issue #52