Lasso Soft Inc. > Home

[ client_cookielist ]

Method

[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.

  • Syntax
Client_CookieList
Examples
  • Beginner

To check whether a specific cookie was set in the current request:

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!

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft