[Zope] Sending an alarm message to all logged-in users

Cliff Ford Cliff.Ford at ed.ac.uk
Mon Oct 18 03:07:35 EDT 2004


One approach you might try when a logged-in user requests a new page:

If the alert condition exists (test) and a the user is logged-in (test), 
include some Javascript in the returned page to display the alert 
message. This could be a simple Alert box or a pop-up window.

Cliff

Dennis Allison wrote:
> Many Zope sysems (ours included) use authentication and maintain session 
> information.  Logged in users are those for which we have session
> information and which we believe (for some reason) are still active.
> 
> On Sun, 17 Oct 2004, Tino Wildenhain wrote:
> 
> 
>>Hi,
>>
>>Am So, den 17.10.2004 schrieb Dennis Allison um 17:52:
>>
>>>Occasionally I have wished for a mechanism that would allow me to write 
>>>all logged-in users.  Of course, this could be acomplished with an
>>>explicit test, but making the test costs a lot of overhead.   Is there a 
>>>better way?
>>
>>HTTP is stateless. There is no such thing like "logged in".
>>Calls are only send from client to server, never the
>>other way round. Thus, you cannot "send" something to all
>>users.
>>
>>You can only put your information in place and hope it
>>gets picked up by the user. Control the process of picking
>>up by means of session.
>>
>>HTH
>>Tino
>>
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )


More information about the Zope mailing list