Owning Palette: CGI VIs
Installed With: Internet Toolkit
Returns a cookie using the REMOTE_ADDR environmental variable in the env input and cookie information in the params input. If a cookie does not exist, the VI creates one.

![]() |
env specifies CGI environmental variables. Wire this input to the env output of the CGI Read Request VI. | ||||||
![]() |
params is a keyed array that can include cookie data and the QUERY_STRING environmental variable. The VI uses the data from this input to locate the cookie if one exists. | ||||||
![]() |
expire time in secs contains the number of seconds the cookie can be idle after the server accesses it and before the server destroys it. The default is 900 seconds, or 15 minutes. | ||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code.
Use exception control to treat what is normally an error as no error or to treat a warning as an error.
Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||
![]() |
cookie is the cookie that the VI locates or creates. | ||||||
![]() |
cookie id is the ID part of the cookie. Use this value when you want to embed a cookie in an HTML document. | ||||||
![]() |
new cookie? is TRUE if the VI created a cookie because it could not find information about an existing cookie. | ||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|