PC Review


Reply
Thread Tools Rate Thread

Access to Session Object Property

 
 
Dorsa
Guest
Posts: n/a
 
      17th Dec 2003
Hi,
I'm new to ASP.net and VB.net . I have saved a class ( SecurityClass)
that has one property ( LoggedIn ) in the Session Object as
SecurityObj. I need to check the property in the SecurityObject
whether it's True or False.
Here is my Code but I know there is another way to do it.
Please Help!
Thanks
Dorsa


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim SecurityObj As securityClass

If Session.Item("SecurityObj") Is Nothing Then
SecurityObj = New securityClass()
Else
SecurityObj = CType(Session.Item("SecurityObj"),
securityClass)
End If

Session("SecurityObj") = SecurityObj
Session("LoggedIn") = SecurityObj.LoggedIn

If Not Page.IsPostBack Then
If Session("LoggedIn") Then
chkLoggedIn.Checked = True
Else
chkLoggedIn.Checked = False
End If
End If
End Sub
 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      18th Dec 2003
Hi Dorsa,

There is someone sometimes active in this newsgroup who is also active in
the security newsgroup. But he said he is very busy with security now.

To have a better change I would place this message direct in that newsgroup
also.

microsoft.public.dotnet.security

Cor


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Property for the Session Object in the Web.config file somoza.albert@gmail.com Microsoft C# .NET 2 15th Aug 2007 06:36 PM
Stored Session object is mixed up with another user's session object. momo898 Microsoft ASP .NET 2 12th Oct 2006 04:33 PM
Access Session Object from DLL bob garbados Microsoft ASP .NET 4 1st Oct 2004 11:09 PM
Access to another session object . Nir Microsoft Dot NET 0 29th Jun 2004 07:11 AM
How to access the Session object from a new thread ? John Smith Microsoft ASP .NET 17 17th Apr 2004 08:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 PM.