User configured LogOffUri and made sure that the below Meta tags are included in the log-out page so it cannot be cached in web browsers, however still cannot see cookie "Set-Cookie: SMSESSION=LOGGEDOFF;" being set in the response and able to replay the SMSESSION cookie and get Access to the system.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
Policy Server Version: 12.8.x and 12.9
In such situation, please validate below:
1) The GET request of the logoff call from the agent trace to make sure that the transaction succeeded and should be able to see the below 2 messages indicating that the agent successfully processed the logoff call.
[Calling LogoutSession for session 'MdAU ... rbEs='.]
[Removing SMSESSION cookie.]
2) Once confirmed, please check if there is any network device(s) that sits between the agent and the browser such as citrix netscaler or any load balancer .
Most of these Network devices will cache the request and serve the contents from it hence why the "Set-Cookie: SMSESSION=LOGGEDOFF;" will be missing in the server response.
Below is an Example on a Successful logout and a Failed One.
In the Failed Request, citrix Netscaler was caching the request where it clearly shows the message "Via: NS-CACHE-9.3: 121" in the server response with NO "Set-Cookie: SMSESSION=LOGGEDOFF;"
In this particular example, citrix Netscaler has the "integrate cache" option turned ON and was cashing the request, once set to OFF, the "Set-Cookie: SMSESSION=LOGGEDOFF;" is being set on the log off request
Validate similar setting on other Network Devices and see the output.
Successful :
------------
HTTP/1.1 200 OK
Date: Tue, 06 Sep 2016 15:19:00 GMT
Server: Apache/2.2.3 (Red Hat)
Set-Cookie: SMSESSION=LOGGEDOFF; path=/; domain=example.com
Last-Modified: Fri, 26 Aug 2016 13:29:42 GMT
ETag: "38b8c2-615-53af ... 80"
Accept-Ranges: bytes
ntCoent-Length: 1557
Connection: close
Failed:
-------
HTTP/1.1 200 OK
Age: 1
Date: Tue, 06 Sep 2016 14:37:43 GMT
Connection: Keep-Alive
Via: NS-CACHE-9.3: 121
ETag: "38b8c2-61 ... 51d80"
Server: Apache/2.2.3 (Red Hat)
Last-Modified: Fri, 26 Aug 2016 13:29:42 GMT
Accept-Ranges: bytes
Content-Length: 1557
nnCoection: close