Browser instances

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

I'm working on this project (currently local). I'm setting cookies containing the users navigation and search actions.

The problem is: when a user hits CTRL+N or similar my cookies become useless, because both (or more) windows read the same cookie.

So is there a way to define or retrieve the different intances of the browser? If yes, how?

Thanx a lot,

Shakespeare: onclick || !(onclick)

dk01's picture

He has: 516 posts

Joined: Mar 2002

I think if you could create a random number using some sort of time function then you could append that to the cookie as sort of a unique id. Almost like using a timestamp in mysql.
-dk

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

hmmm....

a unique number I have already, but in combination with time...!

Gonna try that tomorrow, I'm at home now.

thanx.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.