PC Review


Reply
Thread Tools Rate Thread

Alert another session, how?

 
 
Søren M. Olesen
Guest
Posts: n/a
 
      8th Feb 2005
Hi

Is it somehow possible to alert all other sessions than the current, that
something has changed making all other sessions take appropriate action....

If yes, what should I be looking into ??

TIA

Søren


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      10th Feb 2005
hmmm, why do you need this ability?

I believe you should approach the problem in a different way. Strictly
speaking, you can set a dependency on a file and update that file when new
sessions are started but that seems like a poor design because web
applications are inherently stateless.

Maybe you should say why you need that functionality...

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


"Søren M. Olesen" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi
>
> Is it somehow possible to alert all other sessions than the current, that
> something has changed making all other sessions take appropriate
> action....
>
> If yes, what should I be looking into ??
>
> TIA
>
> Søren
>



 
Reply With Quote
 
Søren M. Olesen
Guest
Posts: n/a
 
      10th Feb 2005

Basically I want to tell the other sessions, that some of data/object
it/they holds are outdated, and needs to be reread from the database....

Regards,

Søren



"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:%(E-Mail Removed)...
> hmmm, why do you need this ability?
>
> I believe you should approach the problem in a different way. Strictly
> speaking, you can set a dependency on a file and update that file when new
> sessions are started but that seems like a poor design because web
> applications are inherently stateless.
>
> Maybe you should say why you need that functionality...
>
> --
> Regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> The Microsoft Office Web Components Black Book with .NET
> Now Available @ http://www.lulu.com/owc
> ----------------------------------------------------------
>
>
> "Søren M. Olesen" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi
>>
>> Is it somehow possible to alert all other sessions than the current, that
>> something has changed making all other sessions take appropriate
>> action....
>>
>> If yes, what should I be looking into ??
>>
>> TIA
>>
>> Søren
>>

>
>



 
Reply With Quote
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      10th Feb 2005
One approach is to provide a static flag responsible for the validity of the
accessed data. A database trigger or a dependency placed on a file will
monitor the file for changes. If the file changes, the static flag is set
which in turn invalidates the session store. So you would access session in
this way for each page

if(session[xxx] != null && !staticFlag)
do something.

If you google around, you will find plenty of code snippets on how to add a
cached dependency.

ASP 2.0 will allow row level dependencies by the way.
--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


"Søren M. Olesen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Basically I want to tell the other sessions, that some of data/object
> it/they holds are outdated, and needs to be reread from the database....
>
> Regards,
>
> Søren
>
>
>
> "Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
> news:%(E-Mail Removed)...
>> hmmm, why do you need this ability?
>>
>> I believe you should approach the problem in a different way. Strictly
>> speaking, you can set a dependency on a file and update that file when
>> new sessions are started but that seems like a poor design because web
>> applications are inherently stateless.
>>
>> Maybe you should say why you need that functionality...
>>
>> --
>> Regards,
>> Alvin Bruney [MVP ASP.NET]
>>
>> [Shameless Author plug]
>> The Microsoft Office Web Components Black Book with .NET
>> Now Available @ http://www.lulu.com/owc
>> ----------------------------------------------------------
>>
>>
>> "Søren M. Olesen" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> Hi
>>>
>>> Is it somehow possible to alert all other sessions than the current,
>>> that something has changed making all other sessions take appropriate
>>> action....
>>>
>>> If yes, what should I be looking into ??
>>>
>>> TIA
>>>
>>> Søren
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alert prior to session timeout? =?Utf-8?B?Sm9uIEFuZ2Vs?= Microsoft C# .NET 1 13th Sep 2005 06:58 PM
Alert on Session timeout? Lars Netzel Microsoft ASP .NET 4 27th Dec 2004 07:57 AM
Re: Use this important VIRUS ALERT - VIRUS ALERT - W32.Swen.A@mm Worm - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT nemo Microsoft VC .NET 0 3rd Nov 2003 08:34 PM
Re: See update - VIRUS ALERT - VIRUS ALERT - W32.Swen.A@mm Worm - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT nemo Microsoft Dot NET Framework 0 12th Oct 2003 01:29 PM
Re: See update - VIRUS ALERT - VIRUS ALERT - W32.Swen.A@mm Worm - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT - VIRUS ALERT nemo Windows XP Photos 0 12th Oct 2003 01:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 AM.