473,385 Members | 1,919 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,385 software developers and data experts.

Object serialization and session

Hi,

I have a User object with properties ID, FirstName, LastName, and an
array of Permissions which I would like to keep in session. Should I
first serialize it to put it in session? I read that this is not
necessary, but I'm wondering about memory usage and performance. I
realize that serializing/deserializing the object will take time, but
will the serialized object consume less memory than the non serialized
object? If so, will it be significant. Thanks.
Nov 17 '05 #1
0 986

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

Similar topics

4
by: John Kandell | last post by:
Hi, I posted this in the asp.net group, but didn't get a response. Maybe someone here can help me with this... --- Would someone be able to shed some light on what is the cost of saving a...
3
by: Alexander | last post by:
Hi all I has Component inside ASP.NET page that create CO object and store reference to it in the Component's privat static field. Then I cast this reference to desired interfac and call...
5
by: Bilbo | last post by:
Hello, I recently read that a class must support serialization in order for it to be stored in the Session State. Before reading this I had been storing a class to the Session State no problem...
3
by: AVL | last post by:
Hi, I'm new to .net. I need some info on serialization. What is serialization? Why do we need it? Why objects need to be serialized if they need to be stored in session or viewstate?
1
by: Zean Smith | last post by:
Is it possible to export the ASP.NET Session object as file/XML for later use? I don't want to use Serialization because my class is pretty complicated and it involves IDictionary which doesn't...
2
by: Hal Heinrich | last post by:
I'm saving an object to isolated storage to preserve user session information. Over time I add new variables to the session object. This breaks the deserialization of the object with an...
2
by: Pathogenix | last post by:
Greetings, I'm trying to fix a web service client which has been implemented in a dailywtf worthy manner. I've decided to rip all the old code out and start again from the proxy generated by...
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...
3
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
1
by: =?Utf-8?B?SGFycnk=?= | last post by:
I am using SQL to hold session state. My problem is that I have an object that I want to store in Session State. I can not mark the class it comes from as Serializable because it is from a DLL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.