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 Post— ninjaimp 8create a session like this
session("MySessionName") = me.txtUsernameyou 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 Post— mail2saion 14HI TO LEARN PASSING DATA WITHIN ASP.NET PAGE THE BELOW LINK IS MUST READ:
Jump to Post— greeny_1984 14Hi,
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 …
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.