Session to store selected domain

Version 1.43


When a User accesses his User Level, once he views the page: CMD_SHOW_DOMAIN? DA will log the domain value (assuming it's valid) into the session file as: With that, all plugins should then have access to read this env variable as: which saves the need for the plugin to pass the domain via GET all over. The global skin tokens will also have the variable: SESSION_SELECTED_DOMAIN Note that there is no guarantee that this variable will be set. However, if you can't find |DOMAIN| or |domain|, then this variable would be a good one to try.

Interested to try DirectAdmin? Get a 30-day Free Trial!