I want to prepared Login control, not use ASP.NET inbuilt Login view. I need your ideas to prepare this.
Idea 1: this method I know and work on fine, get username and password from user and fire select query in database, if database give record then user is authenticated and, user name store in session variable. If I try getting other page directly with URL then first I check the session variable. If it is not null then we load page, otherwise we redirect user to login page.
Now for this I need to check each and every page before loading and I think there some other way also but which I can’t get that.
Guys, please provide me your valuable suggestions not source code. Code I will manage.
Thanks in advance.