Function opentdb::session_reset
source · Expand description
Reset your session token
Over the lifespan of a Session Token, there will eventually reach a point where you have exhausted all the possible questions in the database. At this point, the API will respond with the appropriate “Response Code” (Code 4: Token Empty). From here, you can either “Reset” the Token, which will wipe all past memory, or you can ask for a new one.
Session Tokens will be deleted after 6 hours of inactivity.
Calls: https://opentdb.com/api_token.php?command=reset&token=YOURTOKENHERE
footnote: The API returns a blank page when querying an empty or wrong API key.