Synchronization between pages?

  • Thread starter Thread starter CKKwan
  • Start date Start date
C

CKKwan

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
 
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

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

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
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
 
Please repeat after me:

I have a shitty architecture and the roof is going to fall in someday and
kill everybody.



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
 
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)
 
Back
Top