I
I
Isaac Clark2014-12-12 16:49:53
JavaScript
Isaac Clark, 2014-12-12 16:49:53

Is it possible to save a cookie so that it is visible in one browser window and not in another?

Hello, tell me please.
There is a task: to save cookies on the site and as a result, we can see this cookie in the browser window, and if we open another window (it doesn’t matter which browser is FF, Chrome or IE, the main thing is that it works cross-platform, IE 6 and 7 do not count) , then we can hide this cookie again if necessary .
That is, we opened the browser - we see the cookie, opened a new window - we do not see it.
Is it possible to implement this?
If there are no options with cookies, then you can go to LocalStorage.
Thanks for your help and your time.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Nalomenko, 2014-12-12
@nalomenko

Not

A
Anton B, 2014-12-12
@bigton

With sessionStorage you can

V
Vlad, 2014-12-12
@VladVerpeta

save the cookie marked "for chrome" for example
and then on the client just determine which browser and take your cookie

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question