I have a script to check if a session exists, if not then I log the user's info from $_Server
variables into a database (ip address, time, etc.).
The problem is that the test:
if(!session_id( )) // if there is no session started
{
session_cache_l imiter('nocache ');
session_cache_e xpire (20);
session_start() ;
include_once ('../DB_functions.ph p');
....the the other stuff, like logging goes here...
doesn't seem to work...the test always produces true...is there something I am missing?
Thanks,
Annie
variables into a database (ip address, time, etc.).
The problem is that the test:
if(!session_id( )) // if there is no session started
{
session_cache_l imiter('nocache ');
session_cache_e xpire (20);
session_start() ;
include_once ('../DB_functions.ph p');
....the the other stuff, like logging goes here...
doesn't seem to work...the test always produces true...is there something I am missing?
Thanks,
Annie
Comment