I am building a real time notification system for my site. I am using Pusher for the notifications, etc. I am able to push the notifications fine, but now I am running into the issue of how to save them (for example, when FB has several saved up for you to check at a later time.
My thoughts were to take the notification, display it in real time, then save it as either a session variable or cookie. However, this could get out of hand if a lot of notifications are being pushed. My next option would be to push the notifications into a temporary table, and when a user clicks on the archived alerts, I could display them there. I was just looking for the cleanest, and easiest way to do this. Any help is appreciated.