send session cookie always. Please test it carefully with session data stored in cookies.
Merge pull request #185 from niphlod/issue/cookies

send session cookie always.
bypass all session logic when application does not exist
bypass all session logic when application does not exist, and close files