Extend cookieless embed session

Once a cookieless embed session is acquired, is it possible to extend the length of the session afterwards?

For example, if you provided 300 seconds for the session_length parameter, then after 300 seconds (5 minutes) has elapsed, is it possible to extend the session for another 5 minutes?

1 Like

Hi, a refresh token message will be sent to the embedded client. Check the information here:

https://cloud.google.com/looker/docs/cookieless-embed#generating_new_tokens

 

I tested that endpoint (PUT /embed/cookieless_session/generate_tokens), it doesn’t refresh the session_token_reference’s TTL. It only re-generates the navigation_token and the api_token.

2 Likes

Hi again, sorry about the delay, I was on a holiday :wink:

Ah, I misread your original question. You can’t extend the session so after 5 minutes you’ll be required to do the login dance again.

However, there’s no requirement on our end to use short lived sessions, you could set session_length to hours or days even. The max value by default is 30 days although your Looker Admin can control that.

1 Like

Got it, thanks for clarifying that.

1 Like

Hi @flotor , I’m having some issues with https://cloud.google.com/looker/docs/cookieless-embed#generating_new_tokens api. Im unable to generate new token even if my session ref ttl is set to 8 hrs.
Are you able to complete this cookieless embedding flow?