public function loginPostAction()
 {
     parent::loginPostAction();
     $login = $this->getRequest()->getPost('login');
     if ($this->_getSession()->isLoggedIn() && isset($login['remember'])) {
         $safe_pass = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'taslc99274', $this->_getSession()->getCustomer()->getId(), MCRYPT_MODE_ECB));
         setcookie('anastasia', $safe_pass, time() + 60 * 60 * 24 * 7, '/');
     } else {
         if (isset($_COOKIE['anastasia'])) {
             setcookie('anastasia', $safe_pass, time() - 60 * 60 * 24 * 7, '/');
         }
     }
 }
	public function loginPostAction() {
		parent::loginPostAction();
	}
 public function loginPostAction()
 {
     //Do whatever original method does
     parent::loginPostAction();
     //Set or remove cookie depending on checkbox
     $signin = $this->getRequest()->getParam('login');
     if ($signin['persistent_remember_me'] == 'on') {
         //create cookies with user information, and salted password
         $user = $this->_getSession()->getCustomer()->getName();
         $user_id = $this->_getSession()->getCustomer()->getId();
         //At the moment Created At timestamp could be a good idea to salt the password
         $salt = $this->_getSession()->getCustomer()->getCreatedAtTimestamp();
         $pass = $this->_getSession()->getCustomer()->getPasswordHash();
         $safe_pass = $user_id . "|" . sha1(md5($pass) . md5($salt));
         //Set the cookie with prepared data
         setcookie('infor', $safe_pass, time() + 604800, '/');
     } else {
         //Remove cookie if not checked
         if ($login['rememberme'] = NULL) {
             setcookie('infor', $safe_pass, time() - 604800, '/');
         }
     }
 }