/**
 * Session constants for guest/signed-in session (cart identity, etc.).
 * Used by middleware and client. See docs/session-implementation-plan.md.
 */

/** Cookie name for the guest session ID (same as session architecture). */
export const GUEST_SESSION_COOKIE_NAME = "_store_session";

/** Max lifetime in days for the guest session cookie (30 days). */
export const GUEST_SESSION_MAX_AGE_DAYS = 30;

/** Max-Age for the cookie in seconds (30 days). Use for Set-Cookie Max-Age attribute. */
export const GUEST_SESSION_MAX_AGE_SECONDS =
  GUEST_SESSION_MAX_AGE_DAYS * 24 * 60 * 60;
