I have written a module which is basically an observer which triggers on 'customer_save_after_data_object
' the content of this observer basically listens out for when the customers group is changed.
The issue we are having is that if the customers' group is changed when they are logged in it doesn't seem to take effect, meaning that they need to log out of the account and then back in.
My question is, is there a way to log the customer out of their dashboard programmatically when I don't have direct access to the customer session and only the observer data?