using express cookieParser middleware to get current session from cookie