When a user logs out? or when their Joomla session expires? There is a logout trigger, but no trigger fires when their Joomla session expires (at least no CB trigger that CB Auto Actions can use). You'll know the session expired by checking the _sessions database and him not having one anymore. You can actually use CB Query Field to query the database to see if a session exists for [user_id] then display on profile a Yes/No, 1/0, True/False, whatever you want from your select query based off a session existing or not.