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.
This project is not covered by Drupal’s security advisory policy.
Exposes session ($_SESSION) variables to Context.
Variables are made available in the "session" namespace with the attribute being the key. If the session value is an array the attribute names will be generated as follows: key.subkey, key.subkey2, key.subkey2.subsubkey.
For example you can access the session variables in context as follows.
context_get('session', 'key');
context_get('session', 'key.subkey');
Possible usecases
- This module can be useful for flagging a context to enable or disable based on some event by simply setting or unsetting a session variable.
- Another usecase is to provide values for Views default argument from Context from the user session. This allows a view or set of views to be effected by a session value which can allow a user to toggle some global context to effect many views on a site.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Developer Tools
- 26 sites report using this module
- By boombatower on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.