Magento have different session. You can check customer is login or not using customer/session.
You can check it using this piece of code:
if(!Mage::getSingleton('customer/session')->isLoggedIn()){
//not logged in
}else{
// logged in
}