I'm using a Login control with custom authentication that works off my existing SQL database. I have two things I need help with:
1. When the user logs in successfully, I use Session.Add("LoginFlag", "true") to keep track of the user's login status. Is this the proper way to do so? Or is there a better way?
2. I want to make use of the LoginView control. When users log in, I want them to be able to see a small "Profile" panel on the side of their page. As of now, I've tried to use the control, but it is not working because it isn't able to detect if the current user is logged in or not... why? (I'm thinking its because I'm using custom authentication. If so, can I still use this control?)
Thanks!
1. When the user logs in successfully, I use Session.Add("LoginFlag", "true") to keep track of the user's login status. Is this the proper way to do so? Or is there a better way?
2. I want to make use of the LoginView control. When users log in, I want them to be able to see a small "Profile" panel on the side of their page. As of now, I've tried to use the control, but it is not working because it isn't able to detect if the current user is logged in or not... why? (I'm thinking its because I'm using custom authentication. If so, can I still use this control?)
Thanks!