cookies and session creation for issue #2