check for cookies at socket connection