I want to post the magento admin username and password through curl once the login is successful should redirect to the magento admin dashboard.
How can i do it?
Basically magento login requires this information:
require_once ("magento\app\Mage.php" );
umask(0);
// Initialize Magento
Mage::app("default");
// You have two options here,
// "frontend" for frontend session or "adminhtml" for admin session
Mage::getSingleton("core/session", array("name" => "adminhtml"));
$session = Mage::getSingleton("admin/session");
How can I proceed?
1 Answer