0

In my PHP application every user can see the task list. When a user deletes a task I'm able to refresh a page so that they will see the new task list, but that task is still seen by other users.

What I want is when user deletes a particular task, all users should get a fresh task list (update or refresh should happen).

What is the best way to do that? I'm also using my application iphone safari browser.

alanc
  • 4,102
  • 21
  • 24
S52
  • 419
  • 1
  • 6
  • 20

1 Answers1

0

A simple way would be

  • Save a random string(token) on the Server and deliver it to every web page
  • Inside the web page run a js-script(Ajax), which ask the Server for the token - if a new token is returned, refresh the page
  • if you want to refresh all the pages, just set a new token
Philipp
  • 15,377
  • 4
  • 35
  • 52