For the first time I am creating a user/member login script. I am using session to store info about all logged in user. Here is what I would like to know,
lets say, the user is logged in and the following code executed
Code: Select all
session_start();
$_session['email']= $email;
b. whats best to store in session? an email id? I was wondering if I know some one else email, can I try to use his email, in my session when I am logged it?
c. should i go for a complex numeric data and store it in session for remember logged in user?
Thank you for reading this