Board index » dotnet-framework-aspnet » Synchronization between pages?

Synchronization between pages?

2008-06-22 04:46:03 PM
1. A user log in to my page.
2. Right click at one of the link and bring up another IE window.
3. The two IE Windows are under the same session.
4. I can access the same session valirables using Page.Session["abc"].
Question:
Can I synchronize them using
lock (Page.Session)
{
Page.Session["abdc"];
}
If not, how?
TIA
-
 

Re:Synchronization between pages?

Munna,
Thanks for the reply.
I just wish to Synchronise the access. As I have mentioned earlier,
there will have multiple pages accessing this Session object and I
wish it to be synchronized. Do not want a supprise where the content
is changed in the middle of no where.
TIA
On Jun 22, 5:09 pm, Munna <munna...@gmail.com>wrote:
Quote
On Jun 22, 2:46 pm, CKKwan <ckk...@my-deja.com>wrote:


Hi..

"Can I synchronize them?"

session remain in server...

whenever any one change the server keep the last one...

and after change you got use server push/pull method to keep the other
window update...

exactly what is your requirement?

Best of luck

Munnawww.munna.shatkotha.comwww.munna.shatkotha.com/blogwww.shatkotha.com- Hide quoted text -

- Show quoted text -
-

Re:Synchronization between pages?

Please repeat after me:
I have a shitty architecture and the roof is going to fall in someday and
kill everybody.
<sturyuu5eye@gmail.com>wrote in message
Munna,
Thanks for the reply.
I just wish to Synchronise the access. As I have mentioned earlier,
there will have multiple pages accessing this Session object and I
wish it to be synchronized. Do not want a supprise where the content
is changed in the middle of no where.
TIA
On Jun 22, 5:09 pm, Munna <munna...@gmail.com>wrote:
Quote
On Jun 22, 2:46 pm, CKKwan <ckk...@my-deja.com>wrote:


Hi..

"Can I synchronize them?"

session remain in server...

whenever any one change the server keep the last one...

and after change you got use server push/pull method to keep the other
window update...

exactly what is your requirement?

Best of luck

Munnawww.munna.shatkotha.comwww.munna.shatkotha.com/blogwww.shatkotha.com-
Hide quoted text -

- Show quoted text -
-

Re:Synchronization between pages?

there is no need, asp.net handles this. it only allows 1 request access
to the same session at a time, any other are queued up and processed
after the first one completes.
-- bruce (sqlwork.com)
sturyuu5eye@gmail.com wrote:
Quote
Munna,

Thanks for the reply.

I just wish to Synchronise the access. As I have mentioned earlier,
there will have multiple pages accessing this Session object and I
wish it to be synchronized. Do not want a supprise where the content
is changed in the middle of no where.

TIA

On Jun 22, 5:09 pm, Munna <munna...@gmail.com>wrote:
Quote
On Jun 22, 2:46 pm, CKKwan <ckk...@my-deja.com>wrote:


Hi..

"Can I synchronize them?"

session remain in server...

whenever any one change the server keep the last one...

and after change you got use server push/pull method to keep the other
window update...

exactly what is your requirement?

Best of luck

Munnawww.munna.shatkotha.comwww.munna.shatkotha.com/blogwww.shatkotha.com- Hide quoted text -

- Show quoted text -

-