Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 110763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:16:41+00:00 2026-05-11T02:16:41+00:00

Is it possible to detect if a page is opened in 2 different browsers?

  • 0

Is it possible to detect if a page is opened in 2 different browsers?

I have built an small app, that stores some data in $_SESSION, and the problem is that when multiple tabs gets opened, the session vars gets overwritten (search filters in a search form) and so the tabs may display the same results for apparently different searches.

The main browser used for this app is IE, so it took a while to hit this problem and the app got ..larger and harder to modify.

Until i fix all the references to this search, i would like to do a ‘quick & dirty fix’ and deny opening two tabs with the same page,or at least display a warning..

edit: @arjun: yes, i know, but i have to restore the search filters when the user return to the search page:) so $SESSION is the way to go for this. Also, the filters are sent down by AJAX and it gets hard to debug when you have lots of filters(GET is limited in size, so i use POST)

@tomhaigh: thx..but this is what i’m trying to do right now, but this will take a while because this tab ‘thing’ affects the whole app, and i have to change the filters in all modules… i was looking for something quick&dirty for now. Tip: i dont want to use time() and rand() as theese functions can (and eventually will) generate duplicate numbers. In the new ‘rewrite’ i use microtime from PHP and Date.getTime() in JS and concatenate theese 2 to generate a truly unique id. Also, i wrote a function to parse the SESSION from time to time and cleanup stored filters older than 2 hours so it wont grow too big.

@Gortok: i know..but is was designed with IE6 in mind and most of the users (something like 90%) still use IE6 while logging into this app… so i never saw the need to consider multiple open tabs.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:16:42+00:00Added an answer on May 11, 2026 at 2:16 am

    Well this is a design problem that should be fixed asap. A quick and -surely- dirty way to deal with this though would be to store the client’s IP address in $_SESSION ( $ip=$_SERVER['REMOTE_ADDR']; ) Then check and not create a new session or display a warning if multiple requests are made from this address. This would cause problems for visitors that are over a LAN that share the same IP address. I can’t think anything more .. quick ( or dirty)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 152k
  • Answers 152k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer sigh This is why JSP gets a bad wrap. JSP… May 12, 2026 at 10:06 am
  • Editorial Team
    Editorial Team added an answer This will solve what you are asking: To get FileSystemObject,… May 12, 2026 at 10:06 am
  • Editorial Team
    Editorial Team added an answer Easy enough using general reflection: import javax.persistence.Table; ..... Class<?> c… May 12, 2026 at 10:06 am

Related Questions

Is it possible to detect the HTTP request method (e.g. GET or POST) of
This is one of those ajax alternate flow questions. Normally I expect my ajax
A bit of an odd (challenging?) question. Is it possible to programmatically access the
Is it possible to detect the exact moment an element exists in the DOM

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.