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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:50:49+00:00 2026-05-11T19:50:49+00:00

When using Sql Server to store and manage the SessionState, is the session data

  • 0

When using Sql Server to store and manage the SessionState, is the session data stored in the database using encryption?

When I look at the data in the ASPNet database, the data in the “SessionItemLong” in the ASPStateTempSessions columns appears to be hexadecimal data. Is this data being encrypted before being stored in the database? And if so, where is the key that is being used to encrypt the data and what algorithm is being used to encrypt the data?

Also, the Session state stores the object using serialization. Which serialization is used? (binary or XML)

  • 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-11T19:50:50+00:00Added an answer on May 11, 2026 at 7:50 pm

    There are no encryption there. The data is stored using binary serialization (it’s much more faster than xml one). For details look at the SessionStateUtility class (you can browse it using free Reflector). This is the code which is used for serialization:

    internal static void Serialize(SessionStateStoreData item, Stream stream)
    {
        bool flag = true;
        bool flag2 = true;
        BinaryWriter writer = new BinaryWriter(stream);
        writer.Write(item.Timeout);
        if ((item.Items == null) || (item.Items.Count == 0))
        {
            flag = false;
        }
        writer.Write(flag);
        if ((item.StaticObjects == null) || item.StaticObjects.NeverAccessed)
        {
            flag2 = false;
        }
        writer.Write(flag2);
        if (flag)
        {
            ((SessionStateItemCollection) item.Items).Serialize(writer);
        }
        if (flag2)
        {
            item.StaticObjects.Serialize(writer);
        }
        writer.Write((byte) 0xff);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • 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
  • Editorial Team
    Editorial Team added an answer Managed DirectX has been deprecated for some time. You really… May 12, 2026 at 5:00 am
  • Editorial Team
    Editorial Team added an answer Looks like either you have a wrong version of asm.jar… May 12, 2026 at 5:00 am
  • Editorial Team
    Editorial Team added an answer If the number of states in OpenGL ES as high… May 12, 2026 at 5:00 am

Related Questions

I'm currently developing an application that needs to store data in it's on database,
I have a asp.net web project I am working on, and found out my
I'm using a table adapter in Visual Studio to make a query to a
Yes, I know. The existence of a running copy of SQL Server 6.5 in

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.