-1

I am beginner in Magento. So may be this is not right question that magento supports this functionality or not. I am building a website structure with help of magento and codeigneiter on same environment. My requirement is get session details of magento in my framework so this is possible or not with magento + customization framework script.

pregmatch
  • 2,629
  • 6
  • 31
  • 68
Ritesh
  • 81
  • 12
  • 2
    php session is same for everything. you can make some wrapper function that will parse $_SESSION vars and returns values that you need. – pregmatch Oct 20 '15 at 10:40
  • I am not getting magento session by $_SESSION in my php function. I am also login from magento admin. – Ritesh Oct 20 '15 at 10:48

1 Answers1

0

Magento session is handled by the session class. set new variable and value in the session.

Mage::getSingleton("core/session")->setYourVariableName("your value here"); 
// set your own session variable name in CamelCase. 
//eg. you want to set author_name variable than use setAuthorName("value here") 

I suggest you to go through refrence: https://ellislab.com/codeigniter/user-guide/libraries/sessions.html and study about it well before paying with this.

Navnish Bhardwaj
  • 1,687
  • 25
  • 39