on 03-27-2008 9:12 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.