SetCookie Method
Description
Sets current cookie into the Http Header to be used when uploading scanned images through POST.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V6.1 | Since V6.1 | Since V6.4 |
Syntax
Void ObjectName.SetCookie(String CurrentCookie)
Parameters
String CurrentCookie: the cookie on current page.
Return value
Void.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Remarks
SetCookie method makes the use of Forms Authentication or session easier than ever.
Sample
Javascript Sample:
//return a cookie from server
HttpCookie cookie = new HttpCookie("UserName", "tom");
Response.Cookies.Add(cookie);
...
in JavaScript
Webcam.SetCookie(document.cookie);
Copyright © 2012 Dynamsoft Corporation.All Rights Reserved.
