Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Coffee Break: Join us on Wednesday, April 5th at 10am PT to chat with Ben Gaines, Director of Product Management for Adobe Analytics. Ben will be online to answer your Analytics and Adobe Summit questions.

Correct session cookie handling / expiry


Level 4


Currently s_code uses a session cookie to store specific information - ie getValOnce information.

The session cookie is only deleted when the browser is closed.

For Sitecatalyst the visit expires after 30 minutes inactivity.

Thus if a user returns after more than 30min we get a second visit, but all variables using getValOnce stay empty and report "none".


Therefore session cookies should be appended with a timestamp of the last tracking call, which is updated on every tracking call.

If the timestamp is more than 30min ago the cookie needs to be deleted before any other logic get applied.

This way browser close AND 30min timeouts get reflected correctly.