Hello modular2740 (@modular2740),
The chatbot creates a PHPSESSID in order to log the link the conversation between the bot and the visitor in the conversation log.
If the user is logged in, then the WP user id is used to link conversation instead of the session id.
Without either the session id or user id, then reading the conversation log would be difficult. You wouldn’t know which bot response was associated with which user input.
The PHP session id is also used to deterime the chatbot styling and assistant of the page the visitor or logged in user is accessing.
This was the approach I choose to ensure visitor and bot conversations stayed seperated among each other.
The session id has an Expires / Max-Age of “Session”, which should theoretically mean that when the browser is closed, the PHP id will be erased.
As for have the bot display only when visitors are logged in, I really like that idea. It would likely be a global setting to check if the user is logged in or not, if so present the chatbot, otherwise don’t present the chatbot.
I like this idea so much, that I’ll make every effort to get it into the next release of the chatbot.
Let me know if you have fruther questions/comments about the PHPSESSID.
Thank you for taking the time to share your valuable feedback, as it helps me continually improve and provide a better experience for our users.
-
This reply was modified 2 years, 4 months ago by
kognetiks.
Thank you for your detailed reply and explanation! Right now I have no further questions or comments. Have a great day