Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / system / tests / modules / session_test / session_test.module
1 <?php
2
3 /**
4  * @file
5  * Test module.
6  */
7
8 /**
9  * Implements hook_user_login().
10  */
11 function session_test_user_login($account) {
12   if ($account->getUsername() == 'session_test_user') {
13     // Exit so we can verify that the session was regenerated
14     // before hook_user_login() was called.
15     exit;
16   }
17   // Add some data in the session for retrieval testing purpose.
18   \Drupal::request()->getSession()->set("session_test_key", "foobar");
19 }