Package railo.runtime.type.scope

Examples of railo.runtime.type.scope.Cookie


    super.touchAfterRequest(pc);
    if(!_isInit) return;
   
    ApplicationContext ac=pc.getApplicationContext();
    TimeSpan timespan=(getType()==SCOPE_CLIENT)?ac.getClientTimeout():ac.getSessionTimeout();
    Cookie cookie = pc.cookieScope();
   
   
    Date exp = new DateTimeImpl(pc,System.currentTimeMillis()+timespan.getMillis(),true);
    try {
      String ser=serializer.serializeStruct(sct, ignoreSet);
      if(hasChanges()){
        cookie.setCookie(KeyImpl.init(cookieName), ser,exp, false, "/", null);
      }
      cookie.setCookie(KeyImpl.init(cookieName+"_LV"), Caster.toString(_lastvisit.getTime()), exp, false, "/", null);
     
      if(getType()==SCOPE_CLIENT){
        cookie.setCookie(KeyImpl.init(cookieName+"_TC"), Caster.toString(timecreated.getTime()),exp, false, "/", null);
        cookie.setCookie(KeyImpl.init(cookieName+"_HC"), Caster.toString(sct.get(HITCOUNT,"")), exp, false, "/", null);
      }
     
    }
    catch (Throwable t) {}
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.scope.Cookie

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.