[Client_CookieList] returns a object of type [queriable_select] which contains every cookie sent along with the current HTTP request. Returns empty if no cookies are set. This tag can be used to display all the cookies that are currently set to help debug solutions that rely on cookies. The [Cookie] tag can be used to retrieve a single named cookie. The [Client_Cookies] tag can be used to return a pair array of all set cookies.
Client_CookieList
Use the [Client_CookieList] method to get a list of all cookies and scan it for the desired cookie name. The following code checks to see if a cookie named Username is set.
Code
with c in client_cookielist do => {^
#c == '_LassoSessionTracker_lasso-admin' ? 'A rhino is logged into the Lasso admin!'
^}
Result
A rhino is logged into the Lasso admin!
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments