original_string: private static function create_login_token() {
          global $SESSION;
  
          $state = [
              'token' => random_string(32),
              'created' => time() // Server time - not user time.
          ];
  
          if (!isset($SESSION->logintoken)) {
              $SESSION->logintoken = [];
          }
  
          // Overwrite any previous values.
          $SESSION->logintoken[self::$logintokenkey] = $state;
  
          return $state;
      }
code: private static function create_login_token() {
          global $SESSION;
  
          $state = [
              'token' => random_string(32),
              'created' => time() // Server time - not user time.
          ];
  
          if (!isset($SESSION->logintoken)) {
              $SESSION->logintoken = [];
          }
  
          // Overwrite any previous values.
          $SESSION->logintoken[self::$logintokenkey] = $state;
  
          return $state;
      }
code_tokens: private static function create_login_token ( ) { global $ SESSION ; $ state = [ 'token' => random_string ( 32 ) , 'created' => time ( ) // Server time - not user time. ] ; if ( ! isset ( $ SESSION -> logintoken ) ) { $ SESSION -> logintoken = [ ] ; } // Overwrite any previous values. $ SESSION -> logintoken [ self :: $ logintokenkey ] = $ state ; return $ state ; }
docstring: Generate a new login token and store it in the session.
  
  @return array The current login state.
docstring_tokens: Generate a new login token and store it in the session .