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

  • Home
  • SEARCH
  • 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 79579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:10:04+00:00 2026-05-10T21:10:04+00:00

As you know, in ASP.NET, you can store session data in one of following

  • 0

As you know, in ASP.NET, you can store session data in one of following three modes:

  • InProc
  • Session State
  • SQL Server

For InProc mode, you can store any kind of data objects even it’s not serializable. However, in Session State and SQL Server modes, you can only store serialized data.

In my project, I have a ready made portal which use ‘InProc’ mode to store its session. I need to use Session State instead due to some scalability and failure handling issues.

The problem that this portal is internally storing unserialized objects in the session context (i.e The stored objects doesn’t implement ISerializable interface). I have no access to their code. Is there any work around so that I can be able to store the session objects in State Server without changing their code. I still have access to their web.config file if this would help in any kind.

  • 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. 2026-05-10T21:10:05+00:00Added an answer on May 10, 2026 at 9:10 pm

    AFAIK, the simple answer is no. If you don’t mind changing your code, you could inject a wrapper object between the actual object and yours, and make your wrapper deal with serializing the wrapped object (essentially as a serialization surrogate) – but by then it would almost be easier to simply re-write the code…

    What sort of objects are they? Typically, objects for session-state would be simple data classes, so there shouldn’t be too much issue serializing them?

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

Sidebar

Ask A Question

Stats

  • Questions 74k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The clean way: <class name='Product' table='Product' lazy='false'> <id name='ProductId' column='ProductId'… May 11, 2026 at 2:14 pm
  • added an answer In vista c:\ProgramData is the place, this replaces what used… May 11, 2026 at 2:14 pm
  • added an answer I always tend to use a surrogate primary key in… May 11, 2026 at 2:13 pm

Related Questions

As you may know, in VS 2008 ctrl + tab brings up a nifty
As you may already know, the .NET Framework's protected internal access modifier works in
As most of you would know, if I drop a file named app_offline.htm in
Does anybody know of a method to trigger an event in Prototype, as you
In one of my projects I need to build an ASP.NET page and some
I'm about to enter the 1st phases of designing a commodities trading application. A
I'm implementing a cache in a class library that i'm using in an asp.net
I've got a project which requires a fairly complicated process and I want to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.