Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cfox612 on
Is there a list anywhere of all the session variables that Drupal inherently uses? I'll need to track around 9 additional variables, and want to make sure I'm not over-riding Drupal (some of them are only one letter long).
Comments
You need to namespace your
You need to namespace your variables. This will prevent conflicts. So if your module is named my_module:
Module names must be unique, and therefore there will never be any clashes with any of Drupal's variables, nor with any other contributed module (well, ideally/theoretically).