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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:37:52+00:00 2026-05-13T10:37:52+00:00

I’m writing an ASP.Net MVC application using Jquery to post some data to my

  • 0

I’m writing an ASP.Net MVC application using Jquery to post some data to my users session.

A user 1st accesses my site’s page and then I have a button which performs a post using JQuery to an MVC controller method to store some data into the users session.

When the initial page loads I create a session object for my user using a session factory. This works fine. As part of the initial request to my page I put an object called JoinState into my session – this must be in place for any subsequent requests.

When the user clicks the button on the page, a JQuery post is performed to add data to the JoinState object. This posts to an MVC controller method which accesses the already defined session and updates the JoinState object with the posted data.

However, when the post takes places, my application does not recognise the initial session that was created. This leads to an “Object not set to an instance….” (basically a null reference exception) as the already defined JoinState object now does not exist.

I just cannot work out why this is happening. What I have worked out so far is as follows:

  • It only affects users who are accessing the site from outside my network.
  • Users inside my network are not affected.
  • The url name is a dynamic dns name – could this affect how .net sees the session?
  • I’ve used firebug to debug the POST request and can confirm that the ASP.Net session cookie is being sent.

For some reason, in my JQuery post my original session is not recognised.

Thanks in advance.

  • 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-13T10:37:52+00:00Added an answer on May 13, 2026 at 10:37 am

    Well,,,,,, problem now solved.

    • Nothing to do with MVC.
    • Nothing to do with JQuery
    • Everything to do with me not fully understanding session state in asp.net.

    Facts…

    • Worked on local Web Dev server.
    • Application moved to IIS and it stopped working.

    Findings…

    • InProc session was being used.
    • Worker processes above 1 had been set in IIS.

    Everytime a request was taking place it would hit a new worker process. Because the session was being stored InProc, or in the memory of each individual process, each time a request got a new WP it got a new session.

    Final Conclusion….

    • Dont mess with IIS settings you dont understand!!!

    Worker Processes now set back to 1 – application working.

    Time for bed – thanks to everyone who responded.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.