Lines 197-203
Link Here
|
197 |
*/ |
197 |
*/ |
198 |
private int count = 0; |
198 |
private int count = 0; |
199 |
|
199 |
|
|
|
200 |
/** |
201 |
* Cookie domain for session cookies |
202 |
*/ |
203 |
protected String cookieDomain = null; |
200 |
|
204 |
|
|
|
205 |
|
201 |
/** |
206 |
/** |
202 |
* Frequency of the session expiration, and related manager operations. |
207 |
* Frequency of the session expiration, and related manager operations. |
203 |
* Manager operations will be done once for the specified amount of |
208 |
* Manager operations will be done once for the specified amount of |
Lines 668-673
Link Here
|
668 |
} |
673 |
} |
669 |
|
674 |
|
670 |
/** |
675 |
/** |
|
|
676 |
* This method sets cookie domain for session cookies |
677 |
* |
678 |
* @param domain Cookie domain name (Use ".domain.tld" to issue |
679 |
* subdomain valid session cookies) |
680 |
*/ |
681 |
public void setCookieDomain (String domain) { |
682 |
if (domain == null) { |
683 |
cookieDomain = null; |
684 |
return; |
685 |
} |
686 |
|
687 |
// sanitize && apply cookie domain string |
688 |
domain = domain.trim(); |
689 |
if (domain.length() > 0) { |
690 |
cookieDomain = domain; |
691 |
} else { |
692 |
cookieDomain = null; |
693 |
} |
694 |
} |
695 |
|
696 |
/** |
697 |
* Returns cookie domain if set, otherwise null |
698 |
*/ |
699 |
public String getCookieDomain () { |
700 |
return cookieDomain; |
701 |
} |
702 |
|
703 |
/** |
671 |
* Invalidate all sessions that have expired. |
704 |
* Invalidate all sessions that have expired. |
672 |
*/ |
705 |
*/ |
673 |
public void processExpires() { |
706 |
public void processExpires() { |