Guest User

Untitled

a guest
Jan 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. class Company_Mymodule_UserController extends Mage_Core_Controller_Front_Action{
  2.  
  3. /*
  4. * @see app/code/core/Mage/Api/Controller/Action.php
  5. */
  6. public function preDispatch()
  7. {
  8. $this->getLayout()->setArea($this->_currentArea);
  9. $this->setFlag('', self::FLAG_NO_START_SESSION, 1); // Do not start standart session
  10. parent::preDispatch();
  11. return $this;
  12. }
  13.  
  14.  
  15. public function userAction(){
  16. echo "Don't create a user session at all if this action gets called!';
  17. }
  18. }
Add Comment
Please, Sign In to add comment