Httpsession id

how to generate or get http session id from http request?