Skip to main content

BEV Cookie

The bev (Browser Event Value) cookie is the visitor identifier. It's the only thing connecting anonymous visitors across sessions.

PropertyValue
Namebev
Value{timestamp}_{10-char-random} (e.g., 1712345678_aBcDeFgHiJ)
Max-Age1 year (31536000 seconds)
Path/
HttpOnlytrue (not accessible from JavaScript)
Securetrue when HTTPS detected
DomainConfigurable via bev.cookie.domain

How It's Set

The BevCookieInterceptor runs on every request to @BevCookie-annotated endpoints:

  1. Checks if bev cookie exists in the request
  2. If missing → generates a new value
  3. Sets the cookie in the response
  4. Stores the value as a request attribute for downstream interceptors

What Frontend Does

Nothing. The browser sends the cookie automatically. Frontend code never reads, sets, or sends the bev value manually.

Configuration

bev.cookie.domain=.elivaas.com   # Share across subdomains
bev.cookie.max-age=31536000 # 1 year (default)
bev.cookie.path=/ # All paths (default)