After reading this question over here from 2014, I'm left wondering:
Is there any benefit, security concern, or real reason to use Drupal's session manager class over the browser session
Specifically wondering about the Symfony session API that was mentioned in the above linked question and whether or not that provides any benefits over the way i'm storing and accessing session data.
'The Drupal Way':
$tempstore = \Drupal::service('user.private_tempstore')->get('mymodule_name'); $tempstore->set('my_variable_name', $some_data);
How I'm currently doing it:
$_SESSION['three_minute'] = array(); $_SESSION['three_minute']['utility'] = $form_state->getValue('utility');