In a custom module I had added a block to product page through xml, on the site i am using Lasti_FPC so I also added that block to dynamic_blocks in Lasti_Fpc config.xml file. In that block's phtml file, I am using
if(Mage::getSingleton('customer/session')->isLoggedIn())
to check if the customer is logged in or not (to show different button for logged in vs not logged in) but the problem is when i browse the product page before login, then after login the page still shows content for the not logged in customers. Can anybody help me guide me, how to tackle this and which block to include in dynamic block list?