how to access session variable in the file routes.php using cakephp 2.0? -


i'm needing access session variable in routes file. (routes.php) know how can this?

if not possible, there way access session variable in bootstrap.php?

thank you

you can start sessions far know.

app::uses('cakesession', 'model/datasource'); $value = cakesession::read('your-value'); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -