There are three main steps involved when creating a session_id, they are as follows:
1

Step 1

Create a request token.This is a temporary token that is required to ask the user for permission to access their account. This token will auto expire after 60 minutes if it’s not used
2

Step 2

Ask the user for permissionForward your user to this URL to validate your request token.https://www.themoviedb.org/authenticate/{YOUR_REQUEST_TOKEN}
3

Step 3

Create a Session IDEnter your validated request in the Session ID endpoint token to create your session_id.