Solved

alert 4 all users

Posted on 2007-11-15
5
233 Views
Last Modified: 2007-11-16
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?
0
Comment
Question by:sasha85
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Rouchie
ID: 20289919
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
0
 

Author Comment

by:sasha85
ID: 20290650

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
0
 
LVL 25

Accepted Solution

by:
Rouchie earned 250 total points
ID: 20297075
Yes your approach will work.  You would check the database and save the last alert date/time into a session variable.
If the database contained alerts generated after this time, then you would show the alerts and then save the new greatest date/time value into session.
0
 

Author Comment

by:sasha85
ID: 20297382
is there a need for a application?
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 20297425
Not if each page is checking the database for new alerts.  You would be able to use Session.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Classic ASP, Search Recordset on pick list change 1 52
Time/Date Query 11 37
Stupid git question 2 63
RegEx Help - open to other simple suggestions 8 39
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now