Last post Aug 01, 2015 08:09 AM by Radhesham Khatri
Jul 31, 2015 09:29 AM|Radhesham Khatri|LINK
I am new here in ASP.NET Web pages. I am working on a project which requires Fully Session Login and Logout .
How should i acheive it and also help me start from very step because i am still a new here.
Any reference about tutorials or best place to get start?
Jul 31, 2015 10:17 AM|DeadTroll|LINK
There are a couple different styles of authentication with asp.net. Typically they are Windows, Forms, Custom, and some others. Of which you have one that relies on Active Directory, Some kind of authentication ticket which can be a cookie or session, some
custom implementation which would include SSO from a third party like Windows passport or Facebook.
Asp.net Authentication is the bigger word for Login. What it means is something has identified the current user to some record and data somewhere about them. Some kind of ticket is issued for the user's session in the form of a cookie or session variable
or in some cases a local file can be used too. Authentication in short verifies the identity of the user. While Authorization defines what they can see, do and have access to on the server.
Authorization is typically handled by assigning Roles to a user identity that lets the application know what the user should be allowed to do while using the application. There are managers out there to handle this and make it very easy to check once set
Here are some good links to read up on and learn about Authentication and Authorization. Which login and logoff are a part of.
Authentication and Authorization
windows - https://msdn.microsoft.com/en-us/library/ff647405.aspx
Get used to see this guys name too! Scott Guthrie - more on windows auth
Forms - https://msdn.microsoft.com/en-us/library/7t6b43z4.aspx
And not to forget learning about Roles is also very important
Jul 31, 2015 11:09 AM|Radhesham Khatri|LINK
Thanks for your help, i will go through your suggested links, hope i can learn many things.
Again a big thankuuu.
Jul 31, 2015 02:51 PM|jkjhse|LINK
I found this interesting. I am trying to adapt in my one app which is running using Windows authentication as a secondary password for critical page access as a secondary access control.
Just put that cs file in App_Code folder and use it in login and set/change password pages as
//Your page here
But I haven't figured out yet how to set the authentication cookee to persist login, till the user closes browser or logs out. I am just setting a session variable for the time being as Session["authenticated"] = true
and checking it when ever I need.
I eventually plan to implement whats outlined here
to replace windows authentication permanently. And implement custom authentication and authorization
Aug 01, 2015 08:09 AM|Radhesham Khatri|LINK
It was helpful, thanks