Using the method which reloads the page after sending login. This will fix an issue that the search function couldn't get the session id after login.
Change sanparks skin to log in with browser session instead of metacat client session so session can be validated on other pages.