[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16191] hide info on anonymous
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16191] hide info on anonymous |
Date: |
Wed, 25 Jan 2017 10:58:02 -0500 (EST) |
Revision: 16191
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16191
Author: sigurdne
Date: 2017-01-25 10:58:02 -0500 (Wed, 25 Jan 2017)
Log Message:
-----------
hide info on anonymous
Modified Paths:
--------------
trunk/phpgwapi/inc/class.sessions.inc.php
Modified: trunk/phpgwapi/inc/class.sessions.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.sessions.inc.php 2017-01-25 15:56:43 UTC (rev
16190)
+++ trunk/phpgwapi/inc/class.sessions.inc.php 2017-01-25 15:58:02 UTC (rev
16191)
@@ -286,9 +286,18 @@
$this->phpgw_setcookie('domain',
$this->_account_domain);
}
- if ( (
isset($GLOBALS['phpgw_info']['server']['usecookies'])
+ if ( $GLOBALS['phpgw']->acl->check('anonymous', 1,
'phpgwapi') )
+ {
+ $session_flags = 'A';
+ }
+ else
+ {
+ $session_flags = 'N';
+ }
+
+ if ( $session_flags =='N' && ((
isset($GLOBALS['phpgw_info']['server']['usecookies'])
&&
$GLOBALS['phpgw_info']['server']['usecookies'] )
- || isset($_COOKIE['last_loginid']))
+ || isset($_COOKIE['last_loginid'])))
{
// Create a cookie which expires in 14 days
$cookie_expires = $now + (60 * 60 * 24 * 14);
@@ -325,14 +334,6 @@
// $GLOBALS['phpgw_info']['hooks'] = $this->hooks;
phpgwapi_cache::session_set('phpgwapi', 'password',
base64_encode($this->_passwd));
- if ( $GLOBALS['phpgw']->acl->check('anonymous', 1,
'phpgwapi') )
- {
- $session_flags = 'A';
- }
- else
- {
- $session_flags = 'N';
- }
$GLOBALS['phpgw']->db->transaction_begin();
$this->register_session($login, $user_ip, $now,
$session_flags);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16191] hide info on anonymous,
sigurdne <=