diff --git a/src/server/request/UserSession.js b/src/server/request/UserSession.js index 56a3e23..f4a0c9f 100644 --- a/src/server/request/UserSession.js +++ b/src/server/request/UserSession.js @@ -1,7 +1,7 @@ /** * UserSession class * - * Copyright (C) 2017 R-T Specialty, LLC. + * Copyright (C) 2019 R-T Specialty, LLC. * * This file is part of the Liza Data Collection Framework. * @@ -280,11 +280,17 @@ module.exports = Class.extend( require( 'events' ).EventEmitter, var key = splits[ i ], val = splits[ ++i ]; - // the values are serialized PHP data; unserialize them - val = php.unserialize( val ); + // we do not need _sf2_attributes since they are serialized PHP + // objects and cause problems unserializing when they are + // serialized in PHP7. + if ( key !== '_sf2_attributes' ) + { + // the values are serialized PHP data; unserialize them + val = php.unserialize( val ); - // add to the session data - session_data[ key ] = val; + // add to the session data + session_data[ key ] = val; + } } }