How to clear old session

My sugar keeping-alive the old session version that make my functional don't work via REST.

It return

{"name":"Invalid Session ID","number":11,"description":"The session ID is invalid"}

I try to repair and rebuild but not workRe: I am getting this error in log file: SECURITY: The session ID is invalid, how to resolve it?

How to clear session in Sugar?

Thanks,

M