Using Cookies
A cookie is a named data value stored on a client and sent to the server by the web browser with an HTTP request. VA Smalltalk Web Connection uses a CookieWrapper part that is a nonvisual part that holds persistent strings of data that you want to store in a cookie to use again later.
Cookie support is only available in Web Connection if you are using either the Servlet interface of the Server Smalltalk interface.
In VA Smalltalk, cookies are managed by the CookieWrapper part as name/value pairs. When set or changed, the cookies are sent back to the web browser to be stored on the client. Cookies can be used in many different ways, from helping a Web site identify a specific person or client that has accessed the site before, to holding a set of information across several Web pages, such as a shopping cart for a catalog Web site.
The cookie attribute of a CookieWrapper answers an AbtHttpCookie if you are using the Servlet interface, or an SstHttpCookie if you are using the Server Smalltalk interface.
Note:
The usefulness of cookies is dependent on how a user's Web browser is set up. Most Web browsers give the user the option to refuse saving cookies. It is important to keep this in mind when using cookies in your Web applications.
Note:
Web Connection does not support DBCS characters for Cookies
DBCS cookies are not supported using the Servlet Interface. This is a limitation of the HTTP Server.
Last modified date: 07/06/2018