apply logincookie to search page