Link to home
Start Free TrialLog in
Avatar of sasha85
sasha85

asked on

alert 4 all users

in my systems admins every few hours need to generte alert to all users...
i use ajaxed for this reason...user side checking every 30 sec some checkup and depends on the result alert being shown.
i wonder what kind of checking on the user side i need to check for this reason?

i should use sessions? or to open for every user column with what alerts was already shown to the user?
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

If I understand you correctly, you could write a page for admins to generate alerts that uses the ASP Application object.  Then each page would check the value of the Application object when loaded.  If the value contains an alert, then this could be displayed using a javascript popup etc.

http://www.w3schools.com/asp/asp_applications.asp
Avatar of sasha85
sasha85

ASKER


my question is pure teorethical...

admin write into the some tables alerts...column for the alert+column for the time
the page of the user refresh every 30 sec and need to run check if the last alert from the databse was already present...
i ask what kind of chaeck i need to run??

i thouhght to use session -saving in some session the last alert date and every 30 sec check if the time of the last alert on database older the the time stored in session
ASKER CERTIFIED SOLUTION
Avatar of Rouchie
Rouchie
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sasha85

ASKER

is there a need for a application?
Not if each page is checking the database for new alerts.  You would be able to use Session.