Added logic to do case insensitive comparison on cookie substrings.
Changed substring search to sess, sid, and csrf