cancel
Showing results for 
Search instead for 
Did you mean: 

Confusion regarding Sessions using PDK.NET

Former Member
0 Kudos

Hi,

We need to implement Sessions in one of my applications developed in PDK.NET. Normally in .NET we have global.asax file where we can get the variables to establish sessions. But in PDK.NET since the global.asax file is not available, can any one guide me how to implement sessions using PDK.NET.

How to get the name of the User currently logged in into CTYPE.SESSION("UserName") in PDK.NET ?

Thanks in Advance,

Regards,

Raghu

Accepted Solutions (0)

Answers (1)

Answers (1)

rima-sirich
Advisor
Advisor
0 Kudos

Hi Raghu,

To add the name of the User currently logged in to the session use following code:


Me.Session.Add("UserName", Me.User.Identity.Name)

To get this value from the session use following code:


Dim UserName As String = Me.Session.Item("UserName").ToString()

Regards,

Rima.