Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8440237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:14:10+00:00 2026-06-10T08:14:10+00:00

I have two asp pages on the same server. The first one generates XML

  • 0

I have two asp pages on the same server. The first one generates XML dynamically using querystring informations and session information. The second one reads the first one using an XMLHTTP object and do things using the XML datas.

However, my problem is that the XMLHTTP request is done server-side. Thus, the session variables of the client are not accessible when the xml should be generated.

How can I do so that the page that generates the XML receives the session variables ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:14:12+00:00Added an answer on June 10, 2026 at 8:14 am

    There are many problems with what you are trying to do, not least is that it can lead a busy server to lock up entirely.

    Here is the another approach.

    Add a third page to your solution. This page contains simply a function which returns an XML DOMDocument. This function contains all the logic from your original xml generating page but builds the XML into the DOM (which you were probably doing all ready right?).

    Now your original page simply includes this new function page, calls the function and sends the DOM to the response:

     <!-- #include file="xmlFunction.asp" -->
     <%
          Response.ContentType = "text/xml"
          Response.CharSet = "UTF-8"
          GenerateXml().Save Response
     %>
    

    Your client page can now look this

     <!-- #include file="xmlFunction.asp" -->
     <%
        . . .
    
        Dim dom: Set dom = GenerateXml()
        ''# Code that uses the XML in the dom.
    
     %>
    

    No additional “Request to self” is needed hence no potential lock up. Since code in the xmlFunction.asp is running as part of the original request the appropriate Session object is accessible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two separate websites on the same server. One site is a forum
I have two Windows Server 2008 machines on the same domain. Server one is
I have two ASP.NET sites (they can not run in the same process) and
I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
I've always wondered, lets say you have two asp.net websites running in the same
I have two sites one is written in asp.net webforms and the other one
I have an aspx contentpage wherein there are two placeholders. <asp:PlaceHolder ID=plh1 runat=server Visible=false>
I have an ASP.NET page with two instances of the same Web User Control
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains
I have a ASP.NET app that at one point generates a PDF file and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.