fix isExpired test
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 21 Jun 2005 15:34:41 +0000 (15:34 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 21 Jun 2005 15:34:41 +0000 (15:34 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1654 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/serviceprovider/Session.java

index 28ee7e6..8a747ce 100644 (file)
@@ -114,7 +114,7 @@ public class Session implements Serializable {
        
        public boolean isExpired() {
                long now = System.currentTimeMillis();
-               if (lifetime>0 && lifetime<now)
+               if (lifetime>0 && timestamp+lifetime<now)
                        return true;
                if (timeout>0 && timestamp+timeout<now)
                        return true;