Ask a Question related to ASP.NET Security, Design and Development.
-
Dorsa #1
Access to Session Object Property
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
Dorsa Guest
-
DataGrid - Error #1009: Cannot access a property ormethod of a null object reference.
I am getting a runtime error when I click a button that fires the addPerson function. TypeError: Error #1009: Cannot access a property or method of... -
#29234 [Com]: empty($object->property) incorrect when property has access overloaded (__get)
ID: 29234 Comment by: phpbugs at thunder-2000 dot com Reported By: chrissy at codegoat dot com Status: No... -
object in session can not access
Dear all, I have one page, create an object and save it in session scope, and then redirect to another page.In the new page, the object existed in... -
PHPOPENCHAT: he script tried to execute a method or access a property of an incomplete object.
Hi, I've installed and tested phpopenchat 3.0b2 in my development machine (Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6... -
How to access the application-object to lock it from session?
Hi, You try to access non static member from static function. Use HttpContext.Current.Application.Lock (); to solve your situation. Natty... -
Chris Jackson #2
Re: Access to Session Object Property
Well, you could store an object using:
System.Web.SessionState.HttpSessionState.Add(strin g 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.c om...> 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
Chris Jackson Guest



Reply With Quote

