Produced by Araxis Merge on 12/5/2017 12:06:34 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\server | UserSessionServiceImpl.java | Mon Dec 4 21:35:14 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\server | UserSessionServiceImpl.java | Mon Dec 4 21:56:56 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 134 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /** | |
| 2 | * | |
| 3 | Package: MAG - Vis tA Imaging | |
| 4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
| 5 | Date Cre ated: | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 8 | Descript ion: | |
| 9 | ||
| 10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 11 | ;; Property of the US Government . | |
| 12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
| 13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
| 14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
| 15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
| 16 | ;; telephon e (301) 73 4-0100. | |
| 17 | ;; | |
| 18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
| 19 | ;; a Class I I medical device. A s such, it may not b e changed | |
| 20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
| 21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
| 22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
| 23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
| 24 | ||
| 25 | */ | |
| 26 | package go v.va.med.i maging.awi v.server; | |
| 27 | ||
| 28 | import jav ax.servlet .http.Cook ie; | |
| 29 | import jav ax.servlet .http.Http Session; | |
| 30 | ||
| 31 | import org .apache.lo gging.log4 j.LogManag er; | |
| 32 | import org .apache.lo gging.log4 j.Logger; | |
| 33 | ||
| 34 | import gov .va.med.im aging.awiv .client.Us erSessionS ervice; | |
| 35 | import com .google.gw t.user.ser ver.rpc.Re moteServic eServlet; | |
| 36 | ||
| 37 | public cla ss UserSes sionServic eImpl | |
| 38 | extends Re moteServic eServlet | |
| 39 | implements UserSessi onService | |
| 40 | { | |
| 41 | pr ivate stat ic final l ong serial VersionUID = 8039835 4406979511 33L; | |
| 42 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(User SessionSer viceImpl.c lass); | |
| 43 | ||
| 44 | @O verride | |
| 45 | pu blic boole an logout( ) | |
| 46 | { | |
| 47 | Http Session se ssion = ge tThreadLoc alRequest( ).getSessi on(false); | |
| 48 | if(s ession != null) | |
| 49 | sessio n.invalida te(); | |
| 50 | Cook ie cookie = AwivCred entialsCoo kie.getAwi vCredentia lsCookieVa lue(getThr eadLocalRe quest()); | |
| 51 | if(c ookie != n ull) | |
| 52 | { | |
| 53 | cookie .setMaxAge (0); // de lete the c ookie | |
| 54 | getThr eadLocalRe sponse().a ddCookie(c ookie); | |
| 55 | } | |
| 56 | retu rn true; | |
| 57 | } | |
| 58 | ||
| 59 | @O verride | |
| 60 | pu blic boole an isSessi onStillAct ive() | |
| 61 | { | |
| 62 | Http Session se ssion = ge tThreadLoc alRequest( ).getSessi on(false); | |
| 63 | ||
| 64 | logg er.debug(" Session " + session == null ? "is dead" : "is acti ve"); | |
| 65 | ||
| 66 | retu rn (sessio n != null) ; | |
| 67 | } | |
| 68 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.