Hi

i have built a small mechanism for users to send and receive mail inside my website. this mail system not involving smtp, it's only messages that are saved in the site DB.

right now the only way i can see for checking if a user has new mail is to check the db in every page the user is visiting during his stay in the site which seems to be a bit cumbrous, is there any better approach of doing such thing ?