Interview Question in SQL Server 2000


 

Interview Question :: How to create sessions login in asp.net


iam making a college project using asp.net & vb.net & sql server 2000 as database....
pls tell me in detail how to create a sessions for each user that exists in database...
i have created a regsitration form & its working where a user can register himself on the website...
now i want this user to enter his/her uers id & password & when he/she click on the LOGIN the session begins until he cliks on the LOG OFF button & also time out for these users if they exceeds the time...
pls tell in detail & more easily to grab it easily....
thank you...
Answers to "How to create sessions login in asp.net "
RE: How to create sessions login in asp.net ?

Sessions are automatic in VB.Net, when a new person visits your site they will create a session cookie and the Session_Start subroutine will be called in your code.



<script language="VB" runat="server">

Sub Session_Start(Sender As Object, E As EventArgs)

Session("VariableName") = "Variable Value"

End Sub

</script>
 
Vote for this answer ::  
Update Alert Setting