This is the very rare case but some times we need to access the data stored in session through session_id(specially when the request is not coming from browser). Here is a way I found and like to share:
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.