Maybe someone knows how to get a value in the js plugin $ .session , for example, such an array $ _SESSION ['user'] ['id']?

Tried to do so:

$.session.get('user'); И так: $.session.get('user').get('id'); 
  • Try $ .session.get ('user.id'); - Bykuznec

1 answer 1

This plugin provides access to the window.sessionStorage object, which allows you to store some data in the ключ: значение format on the user side (in the browser).

This plugin has nothing to do with PHP sessions and the $_SESSION

If you need to access this array on the client, then you must implement your read / write protocol. For example, using Ajax