summaryrefslogtreecommitdiffstats
path: root/application/modules
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php9
-rw-r--r--application/modules/user/controllers/IndexController.php5
2 files changed, 10 insertions, 4 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index c1621dc..d141733 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -11,6 +11,15 @@ class Fbgui_IndexController extends Zend_Controller_Action
public function indexAction()
{
// action body
+
+ // Call this Procedure after Login to create a session and save the alphasessionID to session
+ $n = new Pbs_PbsSession();
+ $session = new Application_Model_Session();
+ $session->setBootisoID(1);
+ $session->setTime(time());
+ $session->setIp($_SERVER['REMOTE_ADDR']);
+ $session = $n->createsession($session);
+ $_SESSION['alphasessionID'] = $session->getAlphasessionID();
}
diff --git a/application/modules/user/controllers/IndexController.php b/application/modules/user/controllers/IndexController.php
index 1d41157..d39ff21 100644
--- a/application/modules/user/controllers/IndexController.php
+++ b/application/modules/user/controllers/IndexController.php
@@ -10,10 +10,7 @@ class User_IndexController extends Zend_Controller_Action
public function indexAction()
{
- $n = new Pbs_PbsSession();
- $session = new Application_Model_Session();
- $session->setID('1');
- $n->createsession($session);
+
}