*
* This function generates a token and stores it with the associated
* expiration time (and potentially other session information via the
*
* This function generates a token and stores it with the associated
* expiration time (and potentially other session information via the