"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "owa_auth.php" between
Open-Web-Analytics-1.6.9.tar.gz and Open-Web-Analytics-1.7.0.tar.gz

About: Open Web Analytics (OWA) is web analytics software to track and analyze how people use your web sites and applications.

owa_auth.php  (Open-Web-Analytics-1.6.9):owa_auth.php  (Open-Web-Analytics-1.7.0)
skipping to change at line 343 skipping to change at line 343
/** /**
* Saves login credentails to persistant browser cookies * Saves login credentails to persistant browser cookies
* TODO: refactor to use state facility * TODO: refactor to use state facility
*/ */
function saveCredentials() { function saveCredentials() {
$this->e->debug('saving user credentials to cookies'); $this->e->debug('saving user credentials to cookies');
if (PHP_VERSION_ID < 70300) { if (PHP_VERSION_ID < 70300) {
setcookie($this->config['ns'].'u', $this->u->get('user_id'), time()+ setcookie($this->config['ns'].'u', $this->u->get('user_id'), time()+
3600*24*365*10, '/; samesite=None', $this->config['cookie_domain']); 3600*24*365*10, '/; samesite=Lax', $this->config['cookie_domain']);
setcookie($this->config['ns'].'p', $this->generateAuthCredential( $t setcookie($this->config['ns'].'p', $this->generateAuthCredential( $t
his->credentials['user_id'], $this->u->get('password') ), time()+3600*24*2, '/; his->credentials['user_id'], $this->u->get('password') ), time()+3600*24*2, '/;
samesite=None', $this->config['cookie_domain']); samesite=Lax', $this->config['cookie_domain']);
} else { } else {
setcookie($this->config['ns'].'u', $this->u->get('user_id'), [ setcookie($this->config['ns'].'u', $this->u->get('user_id'), [
'expires' => time()+3600*24*365*10, 'expires' => time()+3600*24*365*10,
'path' => '/', 'path' => '/',
'samesite' => 'None', 'samesite' => 'Lax',
'domain' => $this->config['cookie_domain'], 'domain' => $this->config['cookie_domain'],
]); ]);
setcookie($this->config['ns'].'p', $this->generateAuthCredential( $t his->credentials['user_id'], $this->u->get('password') ), [ setcookie($this->config['ns'].'p', $this->generateAuthCredential( $t his->credentials['user_id'], $this->u->get('password') ), [
'expires' => time()+3600*24*365*10, 'expires' => time()+3600*24*365*10,
'path' => '/', 'path' => '/',
'samesite' => 'None', 'samesite' => 'Lax',
'domain' => $this->config['cookie_domain'], 'domain' => $this->config['cookie_domain'],
]); ]);
} }
} }
/** /**
* Removes credentials * Removes credentials
* @return boolean * @return boolean
*/ */
function deleteCredentials() { function deleteCredentials() {
 End of changes. 3 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)