Get session id ( transport layer ) tcp/ip?

I’m using the wsgiref module to start an application, but I need to know how to capture the session id from http requests. I need to access the transport layer of the tcp/ip protocol stack to be able to capture the ( session id ), can someone help me?

You mean a web session ID? That will not need access to the low level TCP/IP.
It will have been setup as your web server config required I would guess.

Already answered (partly, least ways) 9 hours ago here:

To think is not sure.