Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36547
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: GreaseMonkey GM_setValue - is there a session-only variant ? |
| Date | 2019-05-02 14:25 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qaenj3$1bmi$1@gioia.aioe.org> (permalink) |
| References | <qac0rd$17s9$1@gioia.aioe.org> <ghg0hcoy01t3$.1um5f0pwr5qtt.dlg@40tude.net> <qac5p0$1u5p$1@gioia.aioe.org> <fgax8bupbu4q.wgtmu97fjuno.dlg@40tude.net> |
JJ, > Oh sorry. Use SessionStorage in that case. Although I've seen a few mentions of 'Session Storage', it looked like it needed quite a bit of scripting to create it (as in, not build-in). But, I'll take another look at it. > The data will only survive for the current domain of the loaded > page, and as long as the tab or the browser is not closed. The sounds logical enough, and the on tab-closing might even be better than keeping it until the browser itself is closed. > With SessionStorage, the presence of the ID should be checked first. > If it doesn't exist, it'd mean that it's a new session from the script's > point of view. In this case, a new timestamp should be assigned to > the ID. I get the "if it doesn't exist" check, but loading it with a timestamp ? Not so much. And thanks. Knowing what to actually look for makes searching a whole lot easier. Regards, Rudy Wieser
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
GreaseMonkey GM_setValue - is there a session-only variant ? "R.Wieser" <address@not.available> - 2019-05-01 13:44 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? JJ <jj4public@vfemail.net> - 2019-05-01 19:36 +0700
Re: GreaseMonkey GM_setValue - is there a session-only variant ? "R.Wieser" <address@not.available> - 2019-05-01 15:08 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? JJ <jj4public@vfemail.net> - 2019-05-02 17:50 +0700
Re: GreaseMonkey GM_setValue - is there a session-only variant ? "R.Wieser" <address@not.available> - 2019-05-02 14:25 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? Julio Di Egidio <julio@diegidio.name> - 2019-05-03 02:02 -0700
Re: GreaseMonkey GM_setValue - is there a session-only variant ? JJ <jj4public@vfemail.net> - 2019-05-03 19:56 +0700
Re: GreaseMonkey GM_setValue - is there a session-only variant ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-05-03 15:41 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? JJ <jj4public@vfemail.net> - 2019-05-04 18:16 +0700
Re: GreaseMonkey GM_setValue - is there a session-only variant ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-05-04 13:26 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? "R.Wieser" <address@not.available> - 2019-05-04 14:40 +0200
Re: GreaseMonkey GM_setValue - is there a session-only variant ? Julio Di Egidio <julio@diegidio.name> - 2019-05-01 08:22 -0700
csiph-web