Use Session from one App to others.
Some people might try to find and research for this.
Some time we work as team, Then the project leader will give u job.
first team to work for Project_1 and second team work for Project_2.
After both team completed their job, they need to combine work into
one and use the same Session.
Structure
#Project_1
/app
/cake
/vendors
#Project_2
/app
/cake
/vendors
Firstly, core.php must be set Security.salt to be the same
set Configure::write('Security.salt', 'share2app');
1. //// Folder Project_1 ////
#Project_1
-core.php
set Configure::write('Security.salt', 'share2app');
-any_controller.php
$this->Session->write('SESSION_USER', 'Testing_User');
2. //// Folder Project_2 ////
#Project_2
-core.php
set Configure::write('Security.salt', 'share2app');
-app_controller.php
function beforeFilter()
{
if(App::import('Core','Session')) {
$session = new CakeSession();
$session->start();
}
debug($this->Session->read('SESSION_USER'));
}
/////////
Hop this might be helpful.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---