Login session in ASP.NET(using VB)
-
Hi all, I am novice to ASP.NET. I am studying ASP.NET(coding in VB.NET) using .NET 2003 version with SQL SERVER 2000 I am working on Login Authentication. I am supposed to maintain Users account with login session for every user, i.e. I need to take care of session started after logging in till the user logout from his account. How to create and maintain session in ASP.NET ? I would appreciate if anyone could sort out this difficulty. Thank you. Prodigy. P.S - I am aorking on ASP.NET 2003 using VB.Net and SQL Server 2000
-
Hi all, I am novice to ASP.NET. I am studying ASP.NET(coding in VB.NET) using .NET 2003 version with SQL SERVER 2000 I am working on Login Authentication. I am supposed to maintain Users account with login session for every user, i.e. I need to take care of session started after logging in till the user logout from his account. How to create and maintain session in ASP.NET ? I would appreciate if anyone could sort out this difficulty. Thank you. Prodigy. P.S - I am aorking on ASP.NET 2003 using VB.Net and SQL Server 2000
Session("userName") = assign your user name by this way you can maintain the username untill your session get expire.
Thanks Warm Regards Prakash-B
-
Hi all, I am novice to ASP.NET. I am studying ASP.NET(coding in VB.NET) using .NET 2003 version with SQL SERVER 2000 I am working on Login Authentication. I am supposed to maintain Users account with login session for every user, i.e. I need to take care of session started after logging in till the user logout from his account. How to create and maintain session in ASP.NET ? I would appreciate if anyone could sort out this difficulty. Thank you. Prodigy. P.S - I am aorking on ASP.NET 2003 using VB.Net and SQL Server 2000
In Login page Assign values to Session Varaible such as Seesion["UserName"]="Some Value" ok now check this session in every page load if it is null then redirect it to login page so that if user log out and click back button he should able to access anything
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "