$customerId
= (int)
$this
->getRequest()->getParam(
'id'
);
$customer
= Mage::getModel(
'customer/customer'
)
->load(
$customerId
);
$userSession
= Mage::getSingleton(
'customer/session'
);
$userSession
->setCustomer(
$customer
);
Mage::dispatchEvent(
'customer_login'
,
array
(
'customer'
=>
$customer
));
$this
->getResponse()->setRedirect(Mage::getUrl(
'customer/account'
));
(Visited 86 times, 1 visits today)