if a user opens my website url (x.com)
how can I prevent him from opening the same url (x.com) in another tab/window? (another browser is ok)
my application is all ajax, so there are no different links, the content of the page just changes all the time, and I can't have the user do 1 thing in 1 tab and another thing in another under the same sassion.
arcticM
Recommended Answers
Jump to PostHmm, that's interesting :D
I'm sure there are better ways, but I would log the user's IP Address and browser agent on login either in a DB, a session variable or in a separate text file, and every time they try to perform an action, check to see if they …
Jump to PostThere is no good way that I know of to do this. The real question I have is why can't you allow the user to have two instances of the same session open?
I did find a thread on SO that discusses a similar-sounding problem with an interesting solution:
All 6 Replies
adam.adamski.96155
43
Junior Poster
dcdruck
11
Light Poster
arcticM
amy2389
0
Newbie Poster
arcticM
adam.adamski.96155
43
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.