sessionID param for Delivery API | Community
Skip to main content
Level 3
August 8, 2022
Solved

sessionID param for Delivery API

  • August 8, 2022
  • 1 reply
  • 1662 views

Is there anyone who can explain how pattern for sessionID is supposed to work with the delivery API?

 

https://developers.adobetarget.com/api/delivery-api/

 

The documentation states that a sessionID is required, but where is this sessionID supposed to come from and how is it generated?  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gokul_Agiwal

Hi @rjbu 

I found similar query thread in forum where it answered. Please check the below links. 

https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/sessionid-parameter-in-delivery-api-request/td-p/440868

https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/sessionid-parameter-for-the-target-rest-api/td-p/453069

On the last point on sessionId generation - sessionId is generated and maintained by the client only. 

Let me know if any further question you have.

1 reply

Gokul_Agiwal
Community Advisor
Gokul_AgiwalCommunity AdvisorAccepted solution
Community Advisor
August 9, 2022

Hi @rjbu 

I found similar query thread in forum where it answered. Please check the below links. 

https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/sessionid-parameter-in-delivery-api-request/td-p/440868

https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/sessionid-parameter-for-the-target-rest-api/td-p/453069

On the last point on sessionId generation - sessionId is generated and maintained by the client only. 

Let me know if any further question you have.

RJBuAuthor
Level 3
August 9, 2022

So it seems the reality is that there is no existing pattern (provided by Adobe) for sessionID instantiation/maintenance for a purely server side solution.  

 

This feels like a bit of a disappointment.  There's a requirement for a sessionID, but that sessionID is only provided by the VisitorID service, which only runs in the client.  How is this supposed to work for scenarios that are purely server side or IoT, etc. type systems?  Does Adobe really not offer any sort of recommended pattern on how to set this up?  

Level 4
August 12, 2022

You can use any GUID generator and save the value in cookie for 30min 
Only update the expiry when you have interaction 

After 30 min GUID will be deleted automatically from cookie and you generate another one