Update sessionmanagementplugin.cpp