![]() |
![]() |
|
| Home I Company I Services I Documentation I Downloads I E-Support |
| home -> documentation -> language reference -> The SESSION object | ||||||||||||||||||||
|
Each user that has access to a DBSP site implicitly generates a SESSION object. This object is responsible for storing particular information relative to the user like the IP address, browser type, timestamp of the first session request, timestamp of the last session request, etc.
These values can be retrieved for any session:
These variables contain values only if a successful login has been made:
For example you can build an access log using a query like this one:
Once a DBSP site has been defined, the values of the columns selected in the LOGIN query will be appended to the session object.
For example: suppose that the LOGIN query looks like this:
After the user has logged in successfully the values for USERID, USERNAME and DEPARTMENTID will be part of the session object. For use this values in any page while the session remains live, we simply write for example:
Or we can use them inside SQL sentences
|