Automatic Session for PHP ???

2 views
Skip to first unread message

Fredy Balaguera

unread,
Nov 20, 2010, 8:03:05 PM11/20/10
to TokBox-Developers
Hello,

Sessions can be generated for the widget automatically as in
http://sandbox.tokbox.com/sampleApp/sessionGenerator/ but
permanently?, As if they had an account?

I need to store the session ID in a database so that when a user on my
site can activate the different rooms using a code like this in PHP:

<?php echo '<object data="http://www.tokbox.com/vc/'.
$data_table["lab_tokbox"].'" type="application/x-shockwave-flash"
width="100" height="100" pid="4bcf0d24406d1368">
<param name="movie" value="http://www.tokbox.com/vc/'.
$data_table["lab_tokbox"].'"/> <param name="allowFullScreen"
value="true"> <param name="flashvars"
value="guestList=false&textChat=false&showExpandButton=true" /> <param
name="wmode" value="transparent"> </object>'; ?>

Thanks for your help, is for an educational project.

Fredy Balaguera

Melih Onvural

unread,
Nov 21, 2010, 12:18:27 PM11/21/10
to tokbox-d...@googlegroups.com
Session IDs, as opposed to Call IDs, are always permanent. Therefore, you can trust that a generated session ID will always be found.

If this isn't the case, then please let us know, and we'll investigate it.

However, it looks to me as if you're using the Call Widget API now, and this changes the answer above. To generate a permanent Call ID, when you generate the call you pass in the value "true" as a String into the createSimpleCall function for the persistent parameter. This will make sure that the call ID can be found beyond a limited period of time.

--
Melih O.
me...@tokbox.com

Hello,

Fredy Balaguera

--
You received this message because you are subscribed to the Google Groups "TokBox-Developers" group.
To post to this group, send email to tokbox-d...@googlegroups.com.
To unsubscribe from this group, send email to tokbox-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tokbox-developers?hl=en.

Reply all
Reply to author
Forward
0 new messages