comparison core/lib/Drupal/Core/Session/SessionManager.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
118 $result = $this->startNow(); 118 $result = $this->startNow();
119 } 119 }
120 120
121 if (empty($result)) { 121 if (empty($result)) {
122 // Randomly generate a session identifier for this request. This is 122 // Randomly generate a session identifier for this request. This is
123 // necessary because \Drupal\user\SharedTempStoreFactory::get() wants to 123 // necessary because \Drupal\Core\TempStore\SharedTempStoreFactory::get()
124 // know the future session ID of a lazily started session in advance. 124 // wants to know the future session ID of a lazily started session in
125 // advance.
125 // 126 //
126 // @todo: With current versions of PHP there is little reason to generate 127 // @todo: With current versions of PHP there is little reason to generate
127 // the session id from within application code. Consider using the 128 // the session id from within application code. Consider using the
128 // default php session id instead of generating a custom one: 129 // default php session id instead of generating a custom one:
129 // https://www.drupal.org/node/2238561 130 // https://www.drupal.org/node/2238561