Correct session cookie handling / expiry

Avatar

Avatar
Boost 50
Level 4
sdkoenig
Level 4

Likes

77 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 4
sdkoenig
Level 4

Likes

77 likes

Total Posts

32 posts

Correct reply

0 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
sdkoenig
Level 4

05-04-2013

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.