Thank for the reply
Ive tried many things even your suggestion. but nothing works...
I was reading the code made some sense of it...
I searched other files to see how each value was being defined... Can you explain me one thing...
// set the session cookie
setcookie( $this->client_id, $this->session_id, [b]time() + (CPG_WEEK*2)[/b], $CONFIG['cookie_path'] );
In the other files CPG_HOUR/WEEK are defined as a value...
In this file CPG is not defined... yet its time() + a value = defined value.
Not understanding; assuming that time doesnt need to be defined, and that time = seconds... would it be possible to wrtie the code as such
// set the session cookie
setcookie( $this->client_id, $this->session_id, [b]time(3600)[/b], $CONFIG['cookie_path'] );
If so, can i apply this change to the following as well?
// Lifetime of 'remember me' session is 2 weeks
$rememberme_life_time = [b]time(1209600)[/b];
// Lifetime of normal session is 1 hour
$session_life_time = [b]time(3600)[/b];
I ask since the current lifetime settings are non functional for me
Lastly
I noticed something that might be coded wrong... but you will know best...
// Delete old sessions
$sql = "DELETE FROM {$this->sessionstable} WHERE time [b]<[/b] $session_life_time AND remember = 0";
cpg_db_query($sql, $this->link_id);
// Delete stale 'remember me' sessions
$sql = "DELETE FROM {$this->sessionstable} WHERE time [b]<[/b] $rememberme_life_time";
cpg_db_query($sql, $this->link_id);
i believe that the current code will not delete the session, since time is less than session_life
So with your expert opinion if i make the change to greater than. Following
// Delete old sessions
$sql = "DELETE FROM {$this->sessionstable} WHERE time [b]>[/b] $session_life_time AND remember = 0";
cpg_db_query($sql, $this->link_id);
// Delete stale 'remember me' sessions
$sql = "DELETE FROM {$this->sessionstable} WHERE time [b]>[/b] $rememberme_life_time";
cpg_db_query($sql, $this->link_id);
Again im not an expert...
Im just having a really hard time getting the session validation working...
users are not being logged out, and the family is pressuring me to switch to gallery which i dont want to...
any help... again, my site is localhosted, there is a demo up at
http://cpg.kdfonline.comit has all the same system files and settings as my localhost.
sorry for the inconvenience
if anyone knows how to get this working please help