Can login be done automatically from the credentials set in cookie

Username and password is set in cookie, can we login using these credentials automatically, without the need to click submit button in login form??