Session ID

Is there a way I can retrieve the current session id from a method?