You should use the SessionComponent...
$this->Session->write('Person.eyeColor', 'Green');
$green = $this->Session->read('Person.eyeColor');
Cya,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil
+55 (21) 8865.9250
thiagobelem.net
contato@thiagobelem.net
Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
Assando Sites, curso de CakePHP » assando-sites.com.br
-- Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil
+55 (21) 8865.9250
thiagobelem.net
contato@thiagobelem.net
Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
Assando Sites, curso de CakePHP » assando-sites.com.br
2011/12/24 onur <s.onurkara@gmail.com>
hi everybody,i've session problem on 1&1 servermy code like:class AppController extends Controller{public $components = array('Session','Language','PrgPattern');//public $helpers = array('Html','Form','Js','Session','SearchForm','Text','Paginator');public $permissions = array();public $userPermissions = Array();public $advertPermissions = Array();public $bookingPermissions = Array();public $userPermissionsPreFix = 'lp_user';public $advertPermissionsPreFix = 'lp_advert';public $bookingPermissionsPreFix = 'lp_booking';public function beforeFilter(){CakeSession::write('User.Id',0);echo CakeSession::read('User.Id'); // outputs nothing ??????$_SESSION['User.Id'] = 0;eho--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment