User Login - Session/Cookie Question
Posted: Fri Sep 20, 2002 2:30 pm
question for the advanced programmers out there..
I'm creating a userlogin / create account section for my ecommerce site and what I was going to do is...
1. let user create account - after account creation I register their new user_id as SESSION variable that I will use to run queries against.
2. if the user has an account, let them log in - now if they have a cookie on their system I will check the cookie if no cookie they get the login screen where I will again register their user_id as a SESSION variable
Now the questions are, should I use just the user_id session variable to cue my queries off of and what should I store in the cookie? just the user id? or the email and password?
Thanks All!
I'm creating a userlogin / create account section for my ecommerce site and what I was going to do is...
1. let user create account - after account creation I register their new user_id as SESSION variable that I will use to run queries against.
2. if the user has an account, let them log in - now if they have a cookie on their system I will check the cookie if no cookie they get the login screen where I will again register their user_id as a SESSION variable
Now the questions are, should I use just the user_id session variable to cue my queries off of and what should I store in the cookie? just the user id? or the email and password?
Thanks All!