I am creating a web server that is using Twilio to send / receive messages.
The problem that I am facing is that Twilio uses sender and receiver phone number as a key for a cookie. But in my case, user can have multiple conversations with a server.
As I can think of the solution, the only was would be that I pass all the time cookie that will say which conversatation_id that conversation belongs to.
But since the cookie expiration time is 4h, what would happen if the first sms that I send has cookie conversation_id attached, and the person who received sms replies after 4h. Would I still get conversation_id cookie attached to the message?
Can someone suggest better way of solving this problem?