John
John

Reputation: 7910

Infinite loop and xmlhttprequests in multiple tabs

I have a PHP file with infinite loop while(true){}. The file is loaded with Ajax request.

If I have multiple tabs opened in the same browser, is it possible to reffer only to one request?

I mean, if I open 10 tabs the ajax request will open my php file 10 times and I will have 10 files performing infinite loop while(true){}, and this is not very good for my server.

Again : Is it possible? :)

Sorry for this question, but I can't find solution for it.

Upvotes: 0

Views: 199

Answers (1)

OscarSan
OscarSan

Reputation: 463

Your problem goes to identify the tab of the user. You can use a POST variable to do it.

Please refer to these questions:

Upvotes: 1

Related Questions