Session cookie in a Persist Data Value Extension

Gold Contributor
Gold Contributor

Hi all,
I'm using a session cookie in a Persist Data Value Extension. I close the browser, for more than an hour, and when I open it again the cookie exists yet.
Is this correct?
When visitor session ends?

6 REPLIES 6

Session cookie in a Persist Data Value Extension

Tealium Employee

Hello @vicente_peris. We use a web-standard session. A session comprises a series of actions taken on a website where there is not a gap of more than 30 minutes between any two actions. The session ends when more than 30 minutes of inactivity has occurred since the last action taken by the user.'

 

I would look at the 'condition' you set in the extension.  Is that condition met on the first page on your return?  Anytime  the condition is met, the cookie will be placed.

Session cookie in a Persist Data Value Extension

Tealium Employee

@vicente_peris

 

Just to expand on @robert_sabec answer, modern browsers these days also try to be "helpful" and persist session defined cookies. Hence it is always best to define a time frame as to the expiration period.

 

In the utag.js file we use the defined session time out stored in

 

utag.cfg.session_timeout

This is defaulted to 30 mins, or what has been set in the publish settings in TiQ.

 

sess_timeout.png

 

What you can do set the duration to "hours" and set the value to "0.5" which will explicitly define the cookie to be killed after 30 mins.

 

Adrian

 

 

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Session cookie in a Persist Data Value Extension

Gold Contributor
Gold Contributor

Hi @robert_sabec and @adrian_browning,
Thank you for your response.
I have the cookie configuration as default: 1800000.
But the behaviour is odd.
After the cookie is created, I have deactivated the extensions which are saving the cookie and if I close the tab with my site and open it a new one, after more than one hour, the cookie exist yet. I check it in the resource console.

Before close the tab I checked if the new version of my environment, with the extensions deactivated, is ready.

What i'm doing wrong?

Session cookie in a Persist Data Value Extension

Tealium Employee

Hi @vicente_peris

 

So the utag_main cookie itself has a life of a year. Which means it and the contents will be present for up to a year if the user never revisits.

 

v_id:01537b23cf1600429011afc36f8005078002807000bd0$_sn:1$_ss:1$_pn:1;exp-session$_st:1458061657686$ses_id:1458059857686;exp-session$dc_visit:1$dc_event:1;exp-session$dc_region:eu-west-1;exp-session

Above we have an example utag_main cookie. You will see that some of the items have ";exp-session" these, are limited to the session timeout value. This is got from the property "_st", set initially from the utag.cfg.session_timeout value. These values will be removed, once the utag has updated the contents at some point. However, you may see them in the cookie, but they will not be passed to the utag, as they have been deemed to be expired.

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Session cookie in a Persist Data Value Extension

Gold Contributor
Gold Contributor

Hi @adrian_browning,

 

This is the process I'm following.

 

When the user do login on site, the value in the login variable from the utag_data is "logado".

 

I have a persist extension for the login value when its value is different than "no logado".

 

img1.png

Then I check the cookie in the resources console.

img2.png

 

After this, I deactivate the extension and I close the site more than one hour.

 

But the cookie does not disappear.

 

I can see the utag_main cookie in Resources, but I don't understand the relationship with my cookie.

 

Thanks

 

Session cookie in a Persist Data Value Extension

Tealium Employee

@vicente_peris

 

Your images haven't come through I'm afraid.

 

I think what would be best at this point is if you could either email myself, or one of my colleagues at support@tealium.com or raise a case at https://community.tealiumiq.com/t5/custom/page/page-id/support-contact-form.

 

That way we can setup a GoTo meeting and walk through your specfic issue.

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Public