Tip of the day

Don’t access the magento session object while you’re hooking the controller_front_init_before event, as it’ll be set up incorrectly and give you a cookie error. You probably wanted to hook a pre or post dispatch event instead.