Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created October 17, 2011 19:13
Show Gist options
  • Save timbroder/1293491 to your computer and use it in GitHub Desktop.
Save timbroder/1293491 to your computer and use it in GitHub Desktop.
Creating a Stateless Request in Magento 2
<?php
class Ai_AjaxCatalog_Controller_Action extends Mage_Core_Controller_Front_Action
{
public function preDispatch()
{
$this->setFlag('', self::FLAG_NO_START_SESSION, 1); // Do not start standard session
parent::preDispatch();
return $this;
}
}
test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment