检查用户是否已登录

Mage::getSingleton('customer/session')->isLoggedIn()