Code which i am using is given below
public function loginUser($email, $password){
$session = Mage::getSingleton('customer/session');
try {
$log = $session->login($email, $password);
return $log;
}
catch (Exception $ex) {
return false;
}
}
it returns 1 but not log in the browser , when i refresh the page it is not going set as a login user