Add notes to session variables

main
Jan Dittberner 3 years ago
parent ddfc693f16
commit e97c8b5afb

@ -38,7 +38,7 @@ except requests.exceptions.SSLError as err:
# -- Project information -----------------------------------------------------
project = 'CAcert code documentation'
copyright = '2018, CAcert development team'
copyright = '2018-2020 CAcert development team'
author = 'CAcert development team'
# The short X.Y version

@ -5,8 +5,8 @@
Global Variables
================
As the modules this website includes have to communicate together there are some global variables defined as arrays
As the modules this website includes have to communicate together there are some global
variables defined as arrays.
.. index:: $_REQUEST
@ -61,6 +61,11 @@ This variable is used in :file:`includes/general.php`
:php:global:`$_SESSION`
========================
.. note::
The web application uses the session to store global variables. It might be a better
idea to use real variables or constants. The session is user related and should only
store the minimum information to make information available across request boundaries.
.. php:global:: $_SESSION['mconn']
This global variable defines the status of the database connection

Loading…
Cancel
Save