User ID via a browser cookie

This details how a user_id is set by the Adaptive Plugin using a cookie and shows how this behavior can be modified.

User ID via Cookie

The default behavior for the IRIS.TV Adaptive Library is to drop a domain-specific cookie for a user. For users located in Europe, the default behavior is to not set a cookie. Every time the plugin is initialized, it will check if an IRIS.TV cookie already exists for that domain and use the user_id on the cookie. If one is not found, it will create a new one. The cookie will expire after 30 days of inactivity.

This behavior can be changed through the "set_cookie" Plugin Customization Option (details on those options on Adaptive Plugin Customization Options). Setting "set_cookie" to false prevents the Adaptive Library from creating a cookie for a user when the plugin is initialized.

An example of an IRIS.TV Adaptive Library configuration with "set_cookie":

var irisOptions = {
settings: {
"client_token" : "KJA5452",
"platform" : "videoJS",
"ssl" : true,
"platform_id" : "541313248764",
"player_id" : <HTML player id>,
"start_up_next" : true,
"start_up_next_text" : "UP NEXT:",
"end_up_next": true,
"end_up_next_text" : "UP NEXT:",
"set_cookie" : false
iris_buttons: {
"thumbs_up" : true
"thumbs_down" : true,
"skip_forward" : true,
"skip_back" : true,
"skip_on_thumbs_down" : true