How to migrate from In-Proc to State Server for sessions?

Posted on 2009-02-10
Last Modified: 2013-11-07
Right now I have a project that is using In-Proc to hold session data, but I want to migrate it to use the State Server. I know I have to put the serializable attribute on top of all my classes that are going to be stored in sessions, but the project is thousands of files big. Is there a way to run a checker to see what I have to serialize so I don't leave anything behind or forget some?
Question by:bemara57
    LVL 21

    Accepted Solution

    You could do a global search for the word SESSION (ctl-shift-f in visual studio).

    You could create a FACADE class (, and only allow classes that implement IsSerializable interface.  Once you are sure you have everything, you can delete the changes. (If you don't delete them it wont create any problem, the amount of overhead we are adding is minimal)
    LVL 1

    Assisted Solution

    Not sure that there are any easy way around the [Serializable] tag.

    maybe you can use this link:

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now