helo guys...am doing my website in asp.net and its gonna be an ecommerce site with shopping cart and all..I learned that i will need to makke use of session in the login form and pass it to the other forms...can anyone help and gimme some explanation
Alv45525 0 Light Poster
Recommended Answers
Jump to Postcreate a session like this
session("MySessionName") = me.txtUsername
you can then use this session in other or same page by calling like this
me.txtUsername = session("MySessionName")
have a look here gives a good overview on the session object
Jump to PostHi,
First you need to have a login table to store user data like userid and username.
In the login page create a
session["userid"].
In this session assign the user name from login table when a user logs in and check this session in every …
Jump to Posthave a look here
http://www.w3schools.com/ASP/asp_sessions.aspit shows you how to create and set sessions.
You can set the sessions with the username of the person who logs in.
Use this session …
All 9 Replies
ninjaimp 8 Junior Poster
mail2saion 14 Posting Whiz in Training
greeny_1984 14 Posting Whiz
Alv45525 0 Light Poster
ninjaimp 8 Junior Poster
Alv45525 0 Light Poster
Alv45525 0 Light Poster
ninjaimp 8 Junior Poster
Alv45525 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.