- Code: Select all
Archived Post
Once an OpenTok session is created with code such as
$apiObj = new OpenTokSDK(API_Config::API_KEY
API_Config::API_SECRET);
$session = $apiObj->create_session($_SERVER["REMOTE_ADDR"]);
echo $session->getSessionId();
echo "<br/>";
echo $apiObj->generate_token();
How long will the session ID be available before it expires?
I am creating an application that allows people to create a private
room is it safe to use the sessionID as the unique room ID? Or create
a new session ID when someone enters the room?