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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:25:09+00:00 2026-05-14T05:25:09+00:00

My problem is a bit complicated: I am writing in c#, asp.net and using

  • 0

My problem is a bit complicated:
I am writing in c#, asp.net and using jquery

  1. I have a page that sends requests to
    the server using jquery’s ajax
    method.
  2. I have a ashx file (handler) to
    respond to these request.
  3. User can perform several changes on
    several pages, then use some method
    that will call the ajax method.
  4. My ashx file reads some values From the
    session variables and acts
    accordingly.

This works fine in all browsers but in internet explorer.
In internet explorer the session seems to hold old information (old user ids’). It’s incredible, the same code works fine in firefox, chrome and safari but fails with ie.

What could be causing it? I have no clue where to even start looking for a solution.

btw, Sorry for the general title, couldn’t figure out how to explain in just few words.

Here are the jquery code and the ashx:

jquery

function SendRequstToServer(actionId, additional, callback) {
    if (actionId == "-1") {
        document.location = "default.aspx";
    }
    $.ajax({ url: "SmallRoutinesHandler.ashx", method: "GET",
    //asyn: false,
        data: "Action=" + actionId + additional,
        contentType: "string",
        error: function(xhr, status, errorThrown) {
            alert(errorThrown + '\n' + status + '\n' + xhr.statusText);
        },
        success: function(data) {
            alert(data);
            callback(data);
        }
    });
}

Ashx

context.Response.ContentType = "text/plain";
action = context.Request.QueryString["Action"];
switch ((ClientSideActionsRequest)Enum.Parse(typeof(ClientSideActionsRequest), action))
{
    case ClientSideActionsRequest.ShowProducts:
    long userId = WebCommon.CurrentlyWatchedUser.Id;
    List<UserItems> userItems = UserItems.GetByUserId(userId);
    string[] items = HtmlWrapper.WrapAsItems(userItems);
    if (items.Length > 0)
    {
         context.Response.Write(items.Aggregate((current, next) => string.Format("{0} , {1}", current, next)));
    }
    break;
}

Thank You!

  • 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-14T05:25:09+00:00Added an answer on May 14, 2026 at 5:25 am

    Can you be more specific? There’s a few possible things that could be going wrong here – is it caching on the browser, or when you debug on the server, is it showing old values for Session?

    Make sure you’re setting the cache option of your jQuery .ajax call to false. You may also want to see this question and answer regarding the aggressive nature of IE’s ajax caching.

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

Sidebar

Related Questions

I have a bit of problem when trying to validate my page as HTML5.
Well the situation is bit more complicated than that ! I have a question
The title is a bit complicated, but it fits my problem. I have a
My problem is a bit more complex than using the following simple JavaScript code:
I have a feeling my problem is a bit strange, but here goes... I
I am writing a small utility for calculating a complicated mathematical formula (using commons-math
This might be a bit complicated, but bear with me. I have a Windows
[I am using an example in this question, the real problem I have is
I am currently working on a problem that I have an inelegant solution for.
actual problem seems a bit complicated than the Title says .. but hope someone

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.