Re: Access to Session Object Property
From: Chris Jackson (chrisjATmvpsDOTorgNOSPAM)
Date: 12/17/03
- Next message: Bob Skutnick: "SSL problem using Macintosh browser"
- Previous message: anonymous_at_discussions.microsoft.com: "help needed with security settings"
- In reply to: Dorsa: "Access to Session Object Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 17 Dec 2003 13:45:54 -0500
Well, you could store an object using:
System.Web.SessionState.HttpSessionState.Add(string name, object value);
However, if the only thing this object does is hold a boolean value, it
would be more efficient to store it using a value type, rather than wrapped
in a reference type encapsulating a value type.
-- Chris Jackson Software Engineer Microsoft MVP - Windows Client Windows XP Associate Expert -- More people read the newsgroups than read my email. Reply to the newsgroup for a faster response. (Control-G using Outlook Express) -- "Dorsa" <dorsa_kh@yahoo.com> wrote in message news:232605da.0312170847.4a4ea0f1@posting.google.com... > Hi, I am new to ASP.net and VB.net. I need to store a > class(SecurityClass) with a property ( LoggedIn as Boolean) in the > Session Object (Called SecurityObj) or ( As a session Object?) (Any > difference?) > I need to have access to the LoggedIn Property in the SecurityObj > which is in the session object. > I need to check if it's True or False. > Could you please give me solution? > Thanks > Dorsa
- Next message: Bob Skutnick: "SSL problem using Macintosh browser"
- Previous message: anonymous_at_discussions.microsoft.com: "help needed with security settings"
- In reply to: Dorsa: "Access to Session Object Property"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|