socialengine basically using zendframework for development. Zendframework methods can see all through the socialengine code.
Session is an important functionality in programming. For achieving the session in socialengine use the following code
$session = new Zend_Session_Namespace(‘invite’);
$session->invite_code = $this->_getParam(‘code’);
$session->invite_email = $this->_getParam(’email’);