469,322 Members | 1,648 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

Concurrent requests with same sessionID?

1
Is it possible to serve two concurrent requests with the same sessionID?


I'm making an ajax-chat, on the serverside it looks like this when you are polling for new messages(simplified!):

while(noNewMessages || 60secs passed since request started)
{
Thread.Sleep(1);
}
Print(newMessages);

So when a new message has arrived the javascript will get the message instantly and print it in the browser.


At the same time i want to be able to upload a chatmessage but this doesn't work because the sessionID is in use by the download-request. So when i try to send a request to Upload.aspx the browser will start loading forever because asp can't serve 2 requests with same sessionID. Sometimes i get a hole every 60sec where the sessionID is free but in most cases this doesn't happend. And even if it would happen every time 60secs is way to much!
And decreasing the timeout in Download.aspx is not a good solution, i want to be able to use the id at the same time to get no delay in eighter up- or download.


So...is there any way to do this or do i have to write my own session-manager using cookies and randomizing id-numbers myself?
Oct 29 '07 #1
0 1087

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by PJ | last post: by
1 post views Thread by TroutyJoe | last post: by
6 posts views Thread by Hitesh | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.