Works :) In my project I've also added : $session->delete('mymodule'); to destroy that data after being retrieved to prevent being reused. Great stuff, Drupal 8 rulez ! Reply