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 3967682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:44:56+00:00 2026-05-20T03:44:56+00:00

just been trying to recieve the session value from multiple jquery ajax requests on

  • 0

just been trying to recieve the session value from multiple jquery ajax requests on the same domain name. i think i understand that each request is kind of a virtual browser request so the session is mutally exclusive to each request, but there must be a way some how, has anyone solved this. Basically this is what im trying to do:

I have tries using type: GET and POST but still no luck.

Can anyone help please, Thanks?

First request – Stores the product id in a session

$.ajax({

    url: 'http://localhost/websitetest/test.aspx?storeproduct=' + productid,
    type: 'GET',  
    async: true,
    success: function(data) {
    }

});

Second Request – From the callback variable “data” recieves the product id from the session

$.ajax({

    url: 'http://localhost/websitetest/test.aspx,
    type: 'GET',  
    async: true,
    success: function(data) {
          var productID = data;
    }
});
  • 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-05-20T03:44:57+00:00Added an answer on May 20, 2026 at 3:44 am

    There is no question to send ajax request while accessing Session variable from asp page.

    Simply you can do is :

    <%
    String session_var = Session("name_of_session_variable");
    %>
    

    Even if you still want to try Ajax, I think you will need to print the session variable in test.aspx file using Response.Write(), which will automatically return the content.

    Please check this for further reference.

    Please correct me as well if I am wrong.

    Thank you.

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

Sidebar

Related Questions

OK, I have just been reading and trying for the last hour to import
Just for the sake of experimentation, I've been trying to determine different ways to
For the past few weeks, I've been trying to learn about just how email
I've got a fairly large MFC application that has just been migrated from VS6.0
I've been trying to Base64 encode image data from the user (in this case
I've just been learning about master pages in ASP.NET 2.0. They sound great, but
I have just been re-working an old bit of compiler-like code written using bison.
We've just been given the following code as a solution for a complicated search
I've just been tasked with building a web application using ASP (.net) and am
I have just been getting into low level programming (reading/writing to memory that sort

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.