Author:   Lars Michelsen <[email protected]>
Date:     Sun Feb 20 00:11:44 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Feb 19 23:11:44 2011 +0000

Not updating the session expire time on each page load anymore - as expected 
before

---

 share/server/core/classes/CoreSessionHandler.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/CoreSessionHandler.php 
b/share/server/core/classes/CoreSessionHandler.php
index a5502e4..ee667cf 100644
--- a/share/server/core/classes/CoreSessionHandler.php
+++ b/share/server/core/classes/CoreSessionHandler.php
@@ -52,7 +52,8 @@ class CoreSessionHandler {
                        @session_start();
                        
                        // Store the creation time of the session
-                       $this->set('sessionExpires', time()+$iDuration);
+                       if(!$this->issetAndNotEmpty('sessionExpires'))
+                               $this->set('sessionExpires', time()+$iDuration);
                }
                
                // Reset the expiration time of the session cookie


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to