User data functions (including application session data).
$Id: user.php 611 2006-06-29 10:43:58Z martijnw $
Returns application specific session data.
This functions returns a reference to a hash object that can be used to store application related data. All data stored will be preserved inbetween page views, by use of the $_SESSION variable.
Note that this function returns a reference; this means that you need to reference-assign it in order to make use of it. I.e. the following code works:
- $config =& getParams("app");
- $config["foo"] = "bar";
but the following code will not set the right value:
- $config = getParams("app");
- $config["foo"] = "bar";
Note the missing & in the assignment.
Applications need to provide a disctinct application key to this function. It is suggested that this key also contains the path to this application, so as to allow multiple instances of the same SWS application to coexist on the same host.
Determines whether the specified application has data stored in the application specific session variable.
Resets the application session data.
Return the email address of either the currently authenticated or the specified user.
Return the id of the currently authenticated user.
Return the login name of either the currently authenticated or the specified user.
Documentation generated on Fri, 30 Jun 2006 10:31:38 +0200 by phpDocumentor 1.3.0RC3