473,756 Members | 9,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Concurrent Requests from Same Session

PJ
I posted a few days ago concerning requests being blocked from a main window
after a popup window had initiated a file download. Apparently this has to
do with the fact that asp.net or iis serialize all requests from the same
session. Further requests from the same session are being queued until the
download is complete. So, is there any way to override this? Is there
anyway to tell asp.net to not serialize same session requests? Is there any
way to tell asp.net to ignore session for a specific
request...httph ander(module) or otherwise? Why is this the case anyhow?
Thread safety for session?

TIA~ PJ
Nov 17 '05 #1
5 6330
The Serialization is to keep the session data consistent between requests.
The serialization occurs before the request gets access to a thread. So,
there is no way to avoid it other than to not use the Session intrinsics.
If you use something other than ASP sessions for your Session control (e.g.
some of the Session solutions that use a DB backend) it becomes the
responsibility of those solutions to control the Session consistency.

Pat

"PJ" <pj***@hotmail. com> wrote in message
news:uq******** ******@TK2MSFTN GP11.phx.gbl...
I posted a few days ago concerning requests being blocked from a main window after a popup window had initiated a file download. Apparently this has to do with the fact that asp.net or iis serialize all requests from the same
session. Further requests from the same session are being queued until the download is complete. So, is there any way to override this? Is there
anyway to tell asp.net to not serialize same session requests? Is there any way to tell asp.net to ignore session for a specific
request...httph ander(module) or otherwise? Why is this the case anyhow?
Thread safety for session?

TIA~ PJ

Nov 17 '05 #2
PJ
Thanks Pat. You're not off the hook quite yet though. Couple of
questions...the first to throw out the gauntlet, the second for straight up
practicality.

Latter first...
Can we not override configuration on the folder if not the file level? I
attempted to put a configuration file at the folder level to disable Session
state via the <pages> element, but I just received errors. Can you point me
to a resource that explains how to do this? If I can pass a request key to
my sessionless popup, then said popup could grab necessary state information
from the web cache and main window and popup could continue on their merry
way, w/out blocking each others requests.

Gauntlet...
Was the serialization of session requests designed to protect framework
programmers or framework users from having to write thread safe code to
session?

TIA~ PJ
Nov 17 '05 #3
PJ
Thanks Pat. You're not off the hook quite yet though. Couple of
questions...the first to throw out the gauntlet, the second for straight up
practicality.

Latter first...
Can we not override configuration on the folder if not the file level? I
attempted to put a configuration file at the folder level to disable Session
state via the <pages> element, but I just received errors. Can you point me
to a resource that explains how to do this? If I can pass a request key to
my sessionless popup, then said popup could grab necessary state information
from the web cache and main window and popup could continue on their merry
way, w/out blocking each others requests.

Gauntlet...
Was the serialization of session requests designed to protect framework
programmers or framework users from having to write thread safe code to
session?

TIA~ PJ
Nov 17 '05 #4
If the popup is not participating in the Session, then I do not believe that
it will be able to get the data. You should be able to override at the
folder level, but the Session data won't be available there for lookup (it
is a scope thing). Designing Microsoft ASP.Net Applications (MS-Press) has
a bit to say about it but I'm not sure that it would help you much in this
case. Next time you're at Barnes and Nobles check out pages 100->105.

Actually, the Serialization goes back to IIS3. So, it is more a matter of
..Net persisting previous behaviors. On the trivia side, 'legacy' ASP
threads are STA threads b/c the majority of COM programmers used VB
(minimize the marshalling). STA objects are protected from multiple thread
access by COM. So, the Session serialization was not for threading. It was
really more to ease the migration of fat client applications to the web.
Fat clients, as a general rule, maintained a significant amount of 'state'
information. So, having an Intrinsic (MTA) object that could store session
information for multiple users was a big help.

ASP.Net improves the Session info significantly (lower overhead, more
flexible in object storage), but some of the 'rules' remained. This is one.

Pat

"PJ" <pj*********@ho tmail.com> wrote in message
news:OZ******** ******@TK2MSFTN GP09.phx.gbl...
Thanks Pat. You're not off the hook quite yet though. Couple of
questions...the first to throw out the gauntlet, the second for straight up practicality.

Latter first...
Can we not override configuration on the folder if not the file level? I
attempted to put a configuration file at the folder level to disable Session state via the <pages> element, but I just received errors. Can you point me to a resource that explains how to do this? If I can pass a request key to my sessionless popup, then said popup could grab necessary state information from the web cache and main window and popup could continue on their merry
way, w/out blocking each others requests.

Gauntlet...
Was the serialization of session requests designed to protect framework
programmers or framework users from having to write thread safe code to
session?

TIA~ PJ

Nov 17 '05 #5
PJ
thanks Pat....good explanation.

Correct me if I'm wong, but the sessionless popup will still have access to
the web cache, correct? If so, I can store my necessary state information
in the web cache and the popup will access it via a key given to it in a
request variable. The popup would immediately remove the item from cache as
well.

The override works as expected...
<configuratio n>
<location path="popup">
<system.web>
<pages buffer="false" enableSessionSt ate="false"
enableViewState ="false"
enableViewState Mac="false" autoEventWireup ="false" />
</system.web>

"Pat [MSFT]" <pa******@onlin e.microsoft.com > wrote in message
news:O$******** ******@TK2MSFTN GP11.phx.gbl...
If the popup is not participating in the Session, then I do not believe that it will be able to get the data. You should be able to override at the
folder level, but the Session data won't be available there for lookup (it
is a scope thing). Designing Microsoft ASP.Net Applications (MS-Press) has a bit to say about it but I'm not sure that it would help you much in this
case. Next time you're at Barnes and Nobles check out pages 100->105.

Actually, the Serialization goes back to IIS3. So, it is more a matter of
.Net persisting previous behaviors. On the trivia side, 'legacy' ASP
threads are STA threads b/c the majority of COM programmers used VB
(minimize the marshalling). STA objects are protected from multiple thread access by COM. So, the Session serialization was not for threading. It was really more to ease the migration of fat client applications to the web.
Fat clients, as a general rule, maintained a significant amount of 'state'
information. So, having an Intrinsic (MTA) object that could store session information for multiple users was a big help.

ASP.Net improves the Session info significantly (lower overhead, more
flexible in object storage), but some of the 'rules' remained. This is one.
Pat

"PJ" <pj*********@ho tmail.com> wrote in message
news:OZ******** ******@TK2MSFTN GP09.phx.gbl...
Thanks Pat. You're not off the hook quite yet though. Couple of
questions...the first to throw out the gauntlet, the second for straight up
practicality.

Latter first...
Can we not override configuration on the folder if not the file level? I attempted to put a configuration file at the folder level to disable

Session
state via the <pages> element, but I just received errors. Can you point me
to a resource that explains how to do this? If I can pass a request key

to
my sessionless popup, then said popup could grab necessary state

information
from the web cache and main window and popup could continue on their

merry way, w/out blocking each others requests.

Gauntlet...
Was the serialization of session requests designed to protect framework
programmers or framework users from having to write thread safe code to
session?

TIA~ PJ


Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4971
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come in with the same "session".
11
5448
by: Durai | last post by:
Hi All, I tested "concurrent testing" in MySQL. It works fine. But I couldn't do in PostgreSQL 7.3.4 on HPUX IPF. I got deadlock problem. I used the PHP script to update table( one script increment the column & another one decrement the column). Is the postgres support the concurrent access to update database? I got the following errors: test=# ERROR: deadlock detected ERROR: deadlock detected ERROR: deadlock detected .....
2
2427
by: Calvin KD | last post by:
Hi everyone, Can someone suggest a way of monitoring the number of logins for each user in a particular session to make sure that a particular user cannot log in twice in the same session? I have thought of using Application-level counter or even store the counter in the database but it will not work (100% of the time that is) when the user's session timed out, or user clicking the IE back button or even close down the browser completely....
3
2143
by: em | last post by:
hi, i can't make more than two concurrent requests to a php script - i mean when i make say 20 simultaneous requests then two first execute but 18 remaining are waiting for them, then the next two scripts are handled and so on. why only two? how to change that? it's not session locking for sure - i use session_write_close, and actually i stripped down my script so that now has just some slow-down loop. it's php 4.2 and apache 2, linux...
2
2899
by: Kevin Frey | last post by:
Hello, I've been reading that ASP.NET serialises (ie. processes one at a time) HTTP requests if two simultaneous requests need to access the same session state. It also makes note that ASP.NET tries to reacquire a lock on the session state every 1/2 second until the timeout is reached, and then it will forcibly release the previous users lock and take the lock for itself. What is this timeout figure?
6
1776
by: Hitesh | last post by:
We all know that IIS and asp.net are suppose to be muti-threaded applications running on a pre-emptive multi-tasking model. But, what I have found is that under the default installation of ASP.NET, aspx pages get executed serially. I know that it's easy to say that this can't be right, but I have found threads where others have confirmed this same behavior.
0
1216
by: tomeg | last post by:
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);
7
3151
by: =?Utf-8?B?Vkg=?= | last post by:
Hi, all. Need help with what seems to be either connection, or threading problem in my ASP.NET 2.0 application. The gist of the problem is this: IHttpHandler in my application serves an HTML page that has two images (image A and image B) in it. Once the HTML page is served, expected behavior is this: 1) receive request for image A, 2) receive request for image B almost at the same time as for A,
0
13361
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed programatically either from UNIX or Oracle PLSQL. In this Section, I will be explaining about calling a Concurrent program from UNIX using the CONCSUB Command. Pre-requisite: 1. Concurrent Program should be registered in oracle Applications...
0
9482
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9292
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10062
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8733
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6551
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3827
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3392
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.