RockinPurdy Posted December 17, 2007 Share Posted December 17, 2007 Hey there, How can I detect if 2 of the same website are open... for example test.com/test.php Im going to have something like test.php?id=1 and test.php?id=2 and i dont want users having both open at the same time so how can i detect this? Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 17, 2007 Share Posted December 17, 2007 maybe cookies !! Quote Link to comment Share on other sites More sharing options...
revraz Posted December 17, 2007 Share Posted December 17, 2007 If you are concerned about the same user opening both sites, then just check the IP address. Quote Link to comment Share on other sites More sharing options...
RockinPurdy Posted December 17, 2007 Author Share Posted December 17, 2007 Nah its on a short term basis, I'll look into possible using a cookie to accomplish what I need Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted December 17, 2007 Share Posted December 17, 2007 sessions/ajax When a user opens a page record the timestamp and so forth, then do an onunload (Javascript) unset that session data for that page. if a duplicate exist you can preven a load Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.