I want to program some sort of notification system. What would be the be the best way to achieve this?
- By calling Ajax request call to database on page load? But the problem with this is that it only checks on page load. It would be better if it was even realtime, I guess that depends on the priority of the message. How would I go about on achieving this?
- By using cookies?
I am using PHP and jquery.