Session to all and to all a good night
Posted: Mon Sep 16, 2002 4:26 pm
I'm setting up the customer signup portion of my new ecommerce site now and I had a couple quick questions on how to properly use sessions.
Instead of having them create a user id I'm using their email address as the unique key.
1. when they register I'm going to register the session variable EMAIL and when I do my quries for their account and such I'll use the email address in my sql string.
2. should I do session_register(VAR) or $_SESSION[var] ?
3. now how about people that don't accept cookies? should I code for them as well? what percentage of people really have their cookies set to off and do they even buy things?
I know how to set up sessions and do all that fun stuff, but I just have some "how to use them best for security and function" type questions.
thanks all!
Instead of having them create a user id I'm using their email address as the unique key.
1. when they register I'm going to register the session variable EMAIL and when I do my quries for their account and such I'll use the email address in my sql string.
2. should I do session_register(VAR) or $_SESSION[var] ?
3. now how about people that don't accept cookies? should I code for them as well? what percentage of people really have their cookies set to off and do they even buy things?
I know how to set up sessions and do all that fun stuff, but I just have some "how to use them best for security and function" type questions.
thanks all!