I want to make a loginpage for my website, but im confused in what to use and where to put the functions that would validate the authentication, and keep how can it keep track of sessions.
Should I do it in the controller, and use xlst?
I want to make a loginpage for my website, but im confused in what to use and where to put the functions that would validate the authentication, and keep how can it keep track of sessions.
Should I do it in the controller, and use xlst?
If you are just interested in creating a registration page/ login page, I would recommend reading this article.
The following code snippet comes from that article, which shows you the Login usercontrol:
In general: Sitecore keeps track of the logged in user for you, all you need to do is have the secure pages deny read rights for the
Anonymous
user. You can then allow read rights for all users with a specific role assigned to them. For more information on this, check this StackOverflow question (and it's answer, of course).