Home computickets Where in Google Chrome to see the values ​​saved in the Bitrix...

Where in Google Chrome to see the values ​​saved in the Bitrix session?




Bitrix has sessions

$ session = \ bitrix \ main \ application :: getinstance () - & gt; getsession ();
if (! $ session- & gt; has ('foo'))
  $ Session- & gt; set ('Foo', 'Bar');
echo $ session ['foo']; // BAR.

How in Google Chrome View session value?

Answer 1, Authority 100%


from php.net , \ Bitrix \ Main \ Application :: getInstance () - & gt; GetSession () is a wrapper over $ _ session :

sessions are a simple way to store information for individual users with a unique session identifier. This can be used to save the status between page requests. Sessions identifiers are usually sent to the browser through a session cookie and are used to obtain existing session data. The lack of a session identifier or session cookie reports PHP that you need to create a new session and generate a new session identifier.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions