Lasso Soft Inc. > Home

[ CURLOPT_COOKIESESSION ]

Method

[curlopt_cookiesession] is used together with [curl->set]. The parameter expected by [curl->set] is an integer that will be used to mark this a new cookie "session". It will force the curl library to ignore all cookies it is about to load that are "session cookies" from the previous session. By default, the curl library always stores and loads all cookies, independent if they are session cookies or not. Session cookies are cookies without expiry date and they are meant to be alive and existing for this "session" only.

  • Syntax
curlopt_cookiesession
Examples
  • Beginner

To set the cookie session value

Code

local(c = curl('www.example.com/login'))
#c->set(curlopt_cookiesession, 1)
#c->result

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