Hey @Akhil S Naik thank you som much.
when use this rest API i receive below response and not logged me out:
HTTP/1.1 302 Found
Date: Tuesday, February 19, 2019 2:49:23 PM IRST
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: authorization,Content-Type
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE
X-FRAME-OPTIONS:
X-XSS-Protection: 1
Set-Cookie: JSESSIONID=b2c32d5a-26f6-40cd-9ac4-4d94e474015d; Path=/; HttpOnly
Location: http://$IP:9995/api/login;JSESSIONID=b2c32d5a-26f6-40cd-9ac4-4d94e474015d
Content-Length: 0
Server: Jetty(9.2.15.v20160210)