system/helpers.php
/**
     * Get|set session kesys
     *
     * @param string|array $key The sesion key to get or an associative array of key and value to set in a session
     * @param mixed $default The deafult value to return if the key is not found
     * @return bool|string
     */
Get|set session kesys
@param string|array $key The sesion key to get or an associative array of key and value to set in a session
@param mixed $default The deafult value to return if the key is not found
@return bool|string
Get|set session kesys @param string|array $key The sesion key to get or an associative array of key and value to set in a session @param mixed $default The deafult value to return if the key is not found @return bool|string
function session($key, $default =NULL) {
        if (is_array($key)) {
            foreach($key as $session_key => $value) {
                $_SESSION[$session_key] = $value;
            }
            return;
        }
        if (!isset($_SESSION[$key])) {
            return $default;
        }
        return $_SESSION[$key];
    }
function session ( $ key , $ default = NULL ) { if ( is_array ( $ key ) ) { foreach ( $ key as $ session_key => $ value ) { $ _SESSION [ $ session_key ] = $ value ; } return ; } if ( ! isset ( $ _SESSION [ $ key ] ) ) { return $ default ; } return $ _SESSION [ $ key ] ; }
Get|set session kesys
 @param string|array $key The sesion key to get or an associative array of key and value to set in a session
 @param mixed $default The deafult value to return if the key is not found
 @return bool|string
Get|set session kesys @param string|array $key The sesion key to get or an associative array of key and value to set in a session @param mixed $default The deafult value to return if the key is not found @return bool|string