As the default behavior of HTTP1.0 is non-persistent and HTTP1.1 is persistent but I have to make HTTP1.1 non-persistent only in case of logout operation by handling at server side only disregard of whatever is coming in logout request and it's headers.
The connection is closing in case of error scenarios but I have to close in case of success (200) as well.
I have tried setting up response header by doing (Java) response.setHeader("Connection","close"). This results in Connection: close, keep-alive is the response headers.
I tried to invalidate the session using session.invalidate() , this might have been solved the purpose (not sure) but it response header still i see, Connection: keep-alive.
Please suggest how can I achieve this?