473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question about SQLServer Session State Management

For asp.net web application, I had thought that using SQL Server
Session State management would imply that all session objects be
stored in SQL Server database ASPState.

But when I look into it, I notice that only stuffs related to
SessionID are stored in the database. None of my session objects such
as Session.Contents["UserName"],
Session.Contents["MyCustomerDataTable"] can be found in the database.

So, is it the case that session objects are really stored in memory
just like InProc session state mode? Thank you.
Jun 27 '08 #1
2 1002
Your session objects are indeed stored in the database. They are in binary
serialized form, that's why you cannot "see" what you are looking for.
--Peter
"gnewsgroup" <gn********@gmail.comwrote in message
news:50**********************************@s50g2000 hsb.googlegroups.com...
For asp.net web application, I had thought that using SQL Server
Session State management would imply that all session objects be
stored in SQL Server database ASPState.

But when I look into it, I notice that only stuffs related to
SessionID are stored in the database. None of my session objects such
as Session.Contents["UserName"],
Session.Contents["MyCustomerDataTable"] can be found in the database.

So, is it the case that session objects are really stored in memory
just like InProc session state mode? Thank you.
Jun 27 '08 #2
On Apr 29, 2:49 pm, "Peter Bromberg [C# MVP]"
<pbromb...@nospammin.yahoo.comwrote:
Your session objects are indeed stored in the database. They are in binary
serialized form, that's why you cannot "see" what you are looking for.
--Peter
In the SessionItemLong field?

So,

1. Each session will have only one row in the database?

2. Every time when a session object is created fresh or updated, the
SessionItemLong field is updated?

Thank you.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Mark Yudkin | last post by:
The documentation is unclear (at least to me) on the permissibility of accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003, with separate transactions scope, from separate...
1
by: quique | last post by:
Hi all, I want to know the advantages and disadvantages of the methods of maintain session state, obviously if i choose sqlserver is the most robust but the less performace.. If wan't to...
4
by: John Q. Smith | last post by:
I'm trying to find out some of the details behind OOP state management with SQL Server. For instance - how long does the session object live on any server? Is it created and destoyed with each...
1
by: Julie Barnet | last post by:
Hi, I am having a problem with my session state through sql server. This used to work, then all of a sudden (the only change was setting up replication in the sqlserver database) it stopped...
8
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
5
by: RA | last post by:
Hi If I use session variables does this depends on cookies being sent to the client browser? If yes then what happens if the user disable cookies? Thanks
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
2
by: Chris Puncher | last post by:
Hi. I have a RCW class that was generated by the VS.NET2003 IDE when I added a COM dll reference to my project. This all works fine when I call methods on it. My initial problem is that in...
2
by: Evian Spring | last post by:
We are planning on using "SqlServer" mode for our ASP.NET session state. I know for the classes we store in Session that I need to mark them with the SerializableAttribute as described in this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.