I still new using Asp.net with vb.net
Protected Sub login_Click(ByVal sender As Object, ByVal e As EventArgs) Handles login.Click
Dim querystrings As String = "Select Email, Password ,Roles, Nama_Depan, Nama_Belakang from Employee where Email = @email;"
Dim con As New SqlConnection(connected)
Dim cmd As New SqlCommand(querystrings, con)
Dim myreader As SqlDataReader
Session ("Namadepan")= cmd.Parameters("Nama_Depan")
end sub
I wanted to store Roles, Nama_Depan, Nama_Belakang with session but i don’t know how
Make a class that handles this logic so
Session()andSession.Add()isn’t scattered throughout your website.