I created session in CakePHP like this:
$User = array('userid'=>232, 'access'=>1)
$this->Session->write('User',$User);
Now I want to check userid in session using JavaScript / jQuery
Is there any direct method to access this session in JavaScript.
Thanks
No. Session data is stored on the server.
In order to access it, you need to expose it on a URI via PHP, and then make an HTTP request to that URI (possibly using Ajax).