Hi all:
I would like to only start a session for users who have visited a login page. What would be ideal would to be able to:
if (isset($_SESSION['user_name'])) {
session_start();
}
but I know I can't do that because you can't check for a session vairable if no session has been started, right?
So I guess the option is to set a cookie for users who have logged in and then check for the prescence of the cookie before calling session_start().
BTW, my whole point is to not start sessions for users who haven't logged in for two reasons: search engine compatibility and resource conservation (my site is very, very busy but only few users need to login and carry session variables with them).
Thanks