Component CLIENTCOOKIE

Overview

The CLIENTCOOKIE class transfers its content to a client side cookie - in both directions.

The VALUE that you set on server side is transferred to the client side - and vice versa changes of the value on client side are communicated to the server side.

Attribute summary

Typically used attributes

All attributes are

General attributes are

Positioning

Used inside: BEANPROCESSING

Attribute details

attributemacro

Name of macro that is used for generating certain attributes of this component. Please pay attention: the value of this attribute is read one time for each control and cannot be changed afterwards.

comment

Comment that can be asigned to any component. The comment is not operationally used.

Any textAny text

configinfo

Configuration information that is attached to this component. This information is not functionally used by CaptainCasa, but may be used for any application specific purpose.

httponly

httponly flag of coofies, when defining true then the cookie is NOT available for JavaScript access on client side.

falseAvailable for JS access (default)
trueOnly visible on http/s level

name

reference

Reference to an outside object that is the content behind the component. E.g. a field is representing a certain field of a database table: in this case you could define the value table;column. The reference plays a siginficant role within the attributemacro management.

refOne reference
ref1;ref2Two references
ref1;ref2;ref3Three references

samesite

Samesite flag that is managed with cookies

NoneNone (default)
LaxLax
StrictStrict

secure

secure flag of cookies; if set to true then the cookie will only be transferred in https scenarios

falseAlways sent (default)
trueOnly sent via https

stylevariant

In CaptainCasa you can define styles definitions for components. A style definition is a definition of a set of default attribute values that are applied to the component. In case you want to differenciate between different usage types of the component you can apply multiple styles - and use the stylevariant attribute to select between.

triggerreread

@deprecated! This attribute is no longer used. - testTrigger value: if the value changes then the client cookie will re-read its persisted information, and re-send it to the server side.

value

Data value that is shown and (dependent from the component type) edited inside the component.