Owning Palette: Application Web Server VIs
Requires: Full Development System (Real-Time, Windows). This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Sessions VIs to manage HTTP sessions and session variables. You can create and destroy HTTP sessions, read and write session variables, and return session information.
These VIs work only when you publish Web services to the Application Web Server.
Palette Object | Description |
---|---|
Check If Session Exists | Checks if an HTTP session is associated with the current HTTP request. |
Create Session | Creates an HTTP session for the current HTTP request. |
Delete Session Variable | Deletes the HTTP session variable associated with the name key. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables. |
Destroy Session | Destroys the HTTP session associated with the current HTTP request. Use the Create Session VI to establish an HTTP session. The status of error in does not affect the functionality of this VI. |
Get Session ID Cookie | Returns a client-side cookie for the HTTP session. Client-side cookies allow the server to reuse the same HTTP session when the same Web client submits multiple HTTP requests. You must first establish an HTTP session using the Create Session VI. The cookie remains valid while the browser on the Web client is open. |
Read All Session Variables | Reads all HTTP session variables associated with the current HTTP request. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables. |
Read Session Variable | Reads the value of an HTTP session variable associated with the current HTTP request. You can create session variables by first establishing an HTTP session with the Create Session VI and then using the Write Session Variable VI to create the variables. |
Write Session Variable | Creates or replaces a session variable or set of session variables associated with the current HTTP request. The data type you wire to the value input determines the polymorphic instance to use. |