Hi @connorricks, I don't believe guest sessions expire, so there is no need to renew one. The exception is if they go unused for the first 24 hours, then they expire. In that case you would have to request a new one.
I'm not understanding. If I run the query it gives me a future date (without the timezone) of one day and 5 hours difference from my time. I'm in the US central timezone (CDT) so that accounts for the 5 hours difference. What happened to the one day?
If it's one hour then the previous example expires_at should say 2023-07-16 21:36:47 UTC, so maybe the expires_at is wrong?
Hi @connorricks, sorry for the confusion. I would believe @travisbell since he likely wrote the code so a guest session token expires in one hour unless you use it. Then it is good for regular use. The expire date returned looks to be wrong so maybe a bug with that.
Vastaus käyttäjältä robbie3999
16 heinäkuu 2023 klo 1:30PM
Hi @connorricks, I don't believe guest sessions expire, so there is no need to renew one. The exception is if they go unused for the first 24 hours, then they expire. In that case you would have to request a new one.
Vastaus käyttäjältä connorricks
16 heinäkuu 2023 klo 3:33PM
The endpoint for creating a new session returns an expiry date which is roughly 6 months out.
Vastaus käyttäjältä robbie3999
16 heinäkuu 2023 klo 4:51PM
This url now (7/16/2023 3:36pm cdt):
Returns this:
Time is UTC which would make it 24 hours from now.
If you are getting something different then we will need to see what url you are using.
Vastaus käyttäjältä Travis Bell
19 heinäkuu 2023 klo 5:03PM
Guest sessions will automatically expire if they are not used within the first 60 minutes, that's what the
expires_at
field is denoting.Vastaus käyttäjältä robbie3999
19 heinäkuu 2023 klo 6:34PM
I'm not understanding. If I run the query it gives me a future date (without the timezone) of one day and 5 hours difference from my time. I'm in the US central timezone (CDT) so that accounts for the 5 hours difference. What happened to the one day?
If it's one hour then the previous example expires_at should say 2023-07-16 21:36:47 UTC, so maybe the expires_at is wrong?
Vastaus käyttäjältä connorricks
19 heinäkuu 2023 klo 8:58PM
Thanks for the context!
Vastaus käyttäjältä robbie3999
20 heinäkuu 2023 klo 10:05AM
Hi @connorricks, sorry for the confusion. I would believe @travisbell since he likely wrote the code so a guest session token expires in one hour unless you use it. Then it is good for regular use. The expire date returned looks to be wrong so maybe a bug with that.