Session Management
-
I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.
-
I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.
There is better way than using session.You can change your way of authentication from WINDOWS mode to FORMS mode.Chane that tag to something like this: Then when user login you can use 'FormsAuthentication.SetAuthCookie( "username", true );'. FormsAuthentication class is very useful class for this purpose.And when you want to get user name you can do this: Context.User.Identity.Name Hope this help you.
-
There is better way than using session.You can change your way of authentication from WINDOWS mode to FORMS mode.Chane that tag to something like this: Then when user login you can use 'FormsAuthentication.SetAuthCookie( "username", true );'. FormsAuthentication class is very useful class for this purpose.And when you want to get user name you can do this: Context.User.Identity.Name Hope this help you.
-
I have read up on .Net Session Management a bit lately and I was curious if there are any good examples of its usage kicking around anywhere. Basically I am looking for various ways that people approach a login form and the userid once the user has loggged in..There are some obvious easy solutions, but I was wondering if there are any mores subtle ways and approaches that I may not know about or any intricacies that one may have to watch for.
Hi, Sessions are managed in 3 distinct different ways: (*)InProc (*)ASP.NET Session State Service (*)MSSQL Server Authentication procedures are of 3 different ways: (*)Windows (*)Forms (*)Passport (with Passport SDK installed and configured) Hope this is clear? Deepak Deepak Kumar Vasudevan http://deepak.portland.co.uk/