Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session.Add
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01333574
Message ID:
01334436
Vues:
9
>>>
>>>Depends. In-proc session handling keeps a live reference. Any of the out of proc. handling serializes the object.
>>
>>Interesting - I didn't consider out-of-proc. But unless the object in question was designed to be (and tested as being) seriablizable it seems a dangerous thing to attempt. I'd guess the serialisation on a lot of objects would fail - or that they would pull in a lot of stuff that you didn't really need.
>>
>
>I'd normally suggest always running the out of proc. session handling since you don't have to worry about things like someone's session suddenly disappearing because someone made a change to the web.config file. And it survives app domain unloads. It generally just "feels" more stable to an end user (why was I suddenly logged off for no apparent reason?). But you do have to suddenly deal with the fact that the object may not be marked as (or every easily) serializable. Honestly, you shouldn't really be putting really heavy objects in sessions anyway.

Heavy objects as session variables? Wouldn't dream of it. I use ViewState for that ;-}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform