Not sure about the afterFilter function. Are you sure this is being invoked automatically? Otherwise you can probably right the same logic in beforeRender Function.
On Mar 14, 6:51 am, cake-learner <[email protected]> wrote: > I set up my app object in both beforeFilter and afterFilter callback > functions > > class AppController extends Controller{ > > var $myAppObj; > var $components = array("Site" , "Notification", "Auth", "Mailer", > "Session"); > > function beforeFilter(){ > $this -> myAppObj = unserailize( $this -> Session -> > read( 'AO' ) ); > } > function afterFilter(){ > $this -> Session -> write( 'AO', $this -> myAppObj ); > } > > } > > however the session 'AO' is not saved when i go to other pages. > Do you guys know how I am doing wrong? -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
