Skip to main content
7 events
when toggle format what by license comment
Feb 27, 2023 at 17:29 comment added Peter Bättig This solved my problem. I also needed to use some custom ajax controllers in admin. The first line of your solution was needed so the admin session was loaded so I could verify whether an admin is actually logged in.
Jul 10, 2017 at 6:54 comment added Amaresh Tiwari This code is not working for me
Sep 10, 2015 at 2:04 comment added kiatng The code to start the admin session is already in preDispatch natively so the first line is not needed. I found out that I just need to add form_key in the AJAX parameters to get the preDispatch working correctly and get the session going.
Sep 10, 2015 at 1:36 comment added kiatng The first line Mage::getSingleton('core/session', array('name'=>'adminhtml')); solved my problem. I am trying to AJAX in admin but couldn't get the custom controller to load the admin session in preDispatch.
Oct 16, 2014 at 12:59 review Low quality posts
Oct 16, 2014 at 13:02
Oct 16, 2014 at 12:44 review First posts
Oct 16, 2014 at 12:53
Oct 16, 2014 at 12:39 history answered Keyur CC BY-SA 3.0