Home javascript work with sessions on javascript

work with sessions on javascript




It was set

$ _ session ['device'] = 'a';

I need dynamically when you click on the link, change the value. Does this make it in JS?

Answer 1, Authority 100%

If it helps, that is, it is in jQuery – jquery.session plugin
JavaScript does not have access to sessions, EMNIP of course. Maybe something changed …

Example with plugin:

// to Store
$ (Function () {
  $ .session.set ("MyVar", "Value");
// to Read.
$ (Function () {
  Alert ($ session.get ("MyVar"));

Answer 2, Authority 33%

sessionstorage ['detailpage'] = 'value';
Alert (SessionStorage ['Detailpage']);

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