Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Persistence in WebParts
Message
From
21/08/2006 13:21:37
 
 
To
21/08/2006 07:52:28
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 2.0
Database:
MS SQL Server
Miscellaneous
Thread ID:
01146511
Message ID:
01147368
Views:
23
Hey Bill,

Just curious ... are you storing your Sessions in SQL Server?

~~Bonnie



>Hey Bonnie,
>
>No prob. Your answer was correct. I use more than one method for maintaining state but Session definitely the most. I just wanted to provide some additional info.
>
>Bill
>
>>Thanks for the correct answer, Bill. As I said, I wasn't 100% sure either way.
>>
>>~~Bonnie
>>
>>
>>
>>>Hi Chad,
>>>
>>>Alwaus good to just go ahead and add the [Serializable] attribute to classes that will be stored in Session. If you wind up using State Server or SQL Server to manage state, the objects have to serializable.
>>>
>>>Bill
>>>
>>>>Bonnie,
>>>>
>>>>Can any object be stored to a Session object and retrieved back as that object:
>>>>
>>>>Session["MyObject"] = myCustomObject;
>>>>
>>>>
>>>>CustomObject myCustomObject = (CustomObject)Session["MyObject"];
>>>>
>>>>Will I have to write special serialization/decoding code to make that happen?
>>>>
>>>>TIA,
>>>>Chad
>>>>
>>>>>Hi Chad,
>>>>>
>>>>>I haven't done much with Web apps lately, but when I was messing around with them a couple years back, I determined that the best way to persist data was with Session objects.
>>>>>
>>>>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform