473,581 Members | 2,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server Times Out with ASPSESSIONID Cookie

I am using the XMLHTTP object to request a page from within another ASP
page. For my scenario, the two pages should operate in the same
session. However, when I request the second page, a new session is
created. This makes sense since it is coming from a different client
(the XMLHTTP object as opposed to my browser).

I've tried to pass the ASPSESSIONID cookie along with the XMLHTTP post,
but every time I pass the valid cookie, the XMLHTTP request times out.

Has anyone experienced anything similar to this? Is what I am trying
to accomplish even possible?

Mike Biang
Cramer Development
mi********@gmai l.com

Sep 18 '06 #1
3 3368

<mi********@gma il.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
I am using the XMLHTTP object to request a page from within another ASP
page. For my scenario, the two pages should operate in the same
session. However, when I request the second page, a new session is
created. This makes sense since it is coming from a different client
(the XMLHTTP object as opposed to my browser).

I've tried to pass the ASPSESSIONID cookie along with the XMLHTTP post,
but every time I pass the valid cookie, the XMLHTTP request times out.

Has anyone experienced anything similar to this? Is what I am trying
to accomplish even possible?
Which object are you using exactly? If you are using MSXML XMLHTTP then
this should include the cookie ASPSESSION cookie in the request.

Is it simply timing out on you for another reason?

Mike Biang
Cramer Development
mi********@gmai l.com

Sep 18 '06 #2
Yes, I am using MSXML2 ServerXMLHTTP. When I attempt to pass the valid
sessionID, I receive a server timout error. When the ASPSESSIONID
cookie is invalid (the session ID is not an actual session), I receive
a new session ID and everything functions normally. Could this be a
deadlock issue in IIS? Does IIS requre that scripts execute in serial
for a given session?

For example:
Script 1 begins execution
Srcipt 1 calls Script 2 in the same session
Script 2 blocks until script 1 finishes execution (does IIS process
scripts in this order)?
Script 1 is blocking until Script 2 finishes execution.

Could this be the problem?

Anthony Jones wrote:
<mi********@gma il.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
I am using the XMLHTTP object to request a page from within another ASP
page. For my scenario, the two pages should operate in the same
session. However, when I request the second page, a new session is
created. This makes sense since it is coming from a different client
(the XMLHTTP object as opposed to my browser).

I've tried to pass the ASPSESSIONID cookie along with the XMLHTTP post,
but every time I pass the valid cookie, the XMLHTTP request times out.

Has anyone experienced anything similar to this? Is what I am trying
to accomplish even possible?

Which object are you using exactly? If you are using MSXML XMLHTTP then
this should include the cookie ASPSESSION cookie in the request.

Is it simply timing out on you for another reason?

Mike Biang
Cramer Development
mi********@gmai l.com
Sep 18 '06 #3

<mi********@gma il.comwrote in message
news:11******** *************@h 48g2000cwc.goog legroups.com...
Yes, I am using MSXML2 ServerXMLHTTP. When I attempt to pass the valid
sessionID, I receive a server timout error. When the ASPSESSIONID
cookie is invalid (the session ID is not an actual session), I receive
a new session ID and everything functions normally. Could this be a
deadlock issue in IIS? Does IIS requre that scripts execute in serial
for a given session?

For example:
Script 1 begins execution
Srcipt 1 calls Script 2 in the same session
Script 2 blocks until script 1 finishes execution (does IIS process
scripts in this order)?
Script 1 is blocking until Script 2 finishes execution.

Could this be the problem?
Yes it most certainly. Sorry I hadn't read you original post properly.

ASP will only process one script for a session at a time. The session
object is single threaded and can therefore only be accessed by one tread at
time. If you don't use Session variables you can switch off the use of the
session object I suspect, although I haven't tried it myself, would allow
multiple ASP scripts to execute in this way since there are no sessions.

Anthony Jones wrote:
<mi********@gma il.comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
I am using the XMLHTTP object to request a page from within another
ASP
page. For my scenario, the two pages should operate in the same
session. However, when I request the second page, a new session is
created. This makes sense since it is coming from a different client
(the XMLHTTP object as opposed to my browser).
>
I've tried to pass the ASPSESSIONID cookie along with the XMLHTTP
post,
but every time I pass the valid cookie, the XMLHTTP request times out.
>
Has anyone experienced anything similar to this? Is what I am trying
to accomplish even possible?
>
Which object are you using exactly? If you are using MSXML XMLHTTP then
this should include the cookie ASPSESSION cookie in the request.

Is it simply timing out on you for another reason?

Mike Biang
Cramer Development
mi********@gmai l.com
>

Sep 18 '06 #4

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

Similar topics

4
11666
by: dan glenn | last post by:
Say, I want to set a cookie and have it expire an hour after it's set. It's looking like this is only possible for browsers which are in the same time zone as my server?? In other words, if I set my cookie with: setcookie('CookieName', $SomeValue, time()+3600, "/");
17
1830
by: neerolyte | last post by:
how would i go about setting a cookie in javascript that can be read in javascript on the next page load, but will NOT be passed to the server?
27
12268
by: Joseph Shoe | last post by:
How do you change the ASPSessionID during a web session? I have an ASP application in SSL. The first screen is a login screen, which requests user id and password. An ASPSessionID is assigned for this page. Once the user is authenticated by valid id/pwd, the second page starts the real applicaiton. I want to change the ASPSessionID to be...
2
1866
by: Earl Teigrob | last post by:
I am trying to find storage mechanism that will store a variable until the browser window is closed. A query string variable would be my first choice for this but that is not easily done in my situation. Would a session cookie do the trick? From what I have read, it is persistent until the browser window closes. Is that correct? Even if the...
3
11107
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code behind and don't use a domain then I can not change or remove that cookie's value on the client. If I subsequently create the cookie again in the...
2
1469
by: Marty | last post by:
Something strange is happening on my web site since my hosting provider upgraded to Server 2003 a few weeks ago. I use forms authentication in my asp.net application, with essentially the following c# code-behind on my login page: If (FormsAuthentication.Authenticate(UserName.Text, UserPass.Text))...
1
2775
by: davvel | last post by:
It has been 6 days of re-writing the same code in different ways to try and avoid a getResponse Timeout which haunted me for much too long now. I am trying to do a very simple thing which is prooving the most difficult in my career. Scrape a screen which has several session variables within it, and send this page to an e-mail. I have two...
1
4130
by: Joe | last post by:
Hi, We have a secured website and a user needs to create an account before they can log in. After they login a session cookie (ASPSESSIONIDQABTBBAB=MOPPDDHDOKBJCJFOINAHCJKD) is created to identify the user. We have this session cookie in the IIS 6 log file and I would like to know of any software that we can use them for tracking user...
6
2389
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not completed finished, the second browser jusk pick up some session variables from the first browser and process right after that. It messed up...
0
7789
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...
0
8301
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8169
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6551
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...
1
5670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3803
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...
1
1400
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1132
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.