Set-Cookie: SMSESSION=LOGGEDOFF missing from the response on a log off request

Document ID : KB000047054
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

No "Set-Cookie: SMSESSION=LOGGEDOFF;" observed in the server response header when logging off 

 

Question: 

I have 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 I still cannot see cookie "Set-Cookie: SMSESSION=LOGGEDOFF;"

being set in the response and I am 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">

 

Answer: 

In such situation ,you will need to validate :

1) The GET request of the logoff call from the agent trace to make sure that The transaction succeeded ,you should be able to see the below 2 messages indicating that the agent successfully processed the logoff call.

[Calling LogoutSession for session 'MdAUwFai1ES7kwFJuH+0TC8rbEs='.]

[Removing SMSESSION cookie.]

 

2) Once confirmed ,you will need to 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 you can see clearly 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

You will need to check for similar setting on other Network Devices in case you have the same issue .

 

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=hmsy.com

Last-Modified: Fri, 26 Aug 2016 13:29:42 GMT

ETag: "38b8c2-615-53af981c51d80"

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-615-53af981c51d80"

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