Mage_Core_Model_Session Class Reference

Inheritance diagram for Mage_Core_Model_Session:

Mage_Core_Model_Session_Abstract Mage_Core_Model_Session_Abstract_Varien Varien_Object

List of all members.

Public Member Functions

 __construct ($data=array())
 getFormKey ()


Detailed Description

Core session model

Todo:
extend from Mage_Core_Model_Session_Abstract

Definition at line 34 of file Session.php.


Constructor & Destructor Documentation

__construct ( data = array()  ) 

Definition at line 36 of file Session.php.

00037     {
00038         $name = isset($data['name']) ? $data['name'] : null;
00039         $this->init('core', $name);
00040     }


Member Function Documentation

getFormKey (  ) 

Retrieve Session Form Key

Returns:
string A 16 bit unique key for forms

Definition at line 47 of file Session.php.

00048     {
00049         if (!$this->getData('_form_key')) {
00050             $this->setData('_form_key', Mage::helper('core')->getRandomString(16));
00051         }
00052         return $this->getData('_form_key');
00053     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:00 2009 for Magento by  doxygen 1.5.8