Changeset 3157:9752ee4c8a5b for inc
- Timestamp:
- 01/19/16 12:23:01 (10 years ago)
- Branch:
- default
- Location:
- inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.core.php
r3138 r3157 60 60 { 61 61 if (defined('DC_START_TIME')) { 62 $this->stime =DC_START_TIME;62 $this->stime = DC_START_TIME; 63 63 } else { 64 64 $this->stime = microtime(true); … … 88 88 $this->prefix = $prefix; 89 89 90 $ttl = DC_SESSION_TTL; 91 if (!is_null($ttl)) { 92 if (substr(trim($ttl),0,1) != '-') { 93 // Clearbricks requires negative session TTL 94 $ttl = '-'.trim($ttl); 95 } 96 } 97 90 98 $this->error = new dcError(); 91 99 $this->auth = $this->authInstance(); 92 $this->session = new sessionDB($this->con,$this->prefix.'session',DC_SESSION_NAME,'',null,DC_ADMIN_SSL );100 $this->session = new sessionDB($this->con,$this->prefix.'session',DC_SESSION_NAME,'',null,DC_ADMIN_SSL,$ttl); 93 101 $this->url = new dcUrlHandlers(); 94 102 -
inc/prepend.php
r3126 r3157 155 155 if (!defined('DC_XMLRPC_URL')) { 156 156 define('DC_XMLRPC_URL','%1$sxmlrpc/%2$s'); 157 } 158 159 if (!defined('DC_SESSION_TTL')) { 160 define('DC_SESSION_TTL',null); 157 161 } 158 162
Note: See TracChangeset
for help on using the changeset viewer.