Dear Jomsocial gentlemen, I need the help of you to create a cookie, that asks me for the support of my chat so that it works me correctly.
"The thing is that CometChat requires userid of logged in users to work. In Joomla integration, CometChat fetches the userid in the database of Joomla table called "gaf2j_session". However, in your Joomla installation due to some irregularities we are unable to find the user id of your logged in user in the table "gaf2j_session" in some scenarios. That is why the user is logged in and sometimes they are not.
You do not need to reinstall anything to make this work. Just ask your developer to create a cookie called "cc_data" when a user logs in on your website to His account and to delete the same "cc_data" when a user logs out. The value of this cookie should be the userid of the logged in user.
Once this is configured CometChat will work as desired."
This does not help much:
I need to create a cookie called "cc_data" when a user logs in on his website to his account and to delete the same "cc_data" when a user logs out. The value of this cookie should be the userid of the logged in user.
How do I do that?
OR hack our jomsocial redirect plugin, on that plugin we already have function logout and login, you only need set your cookie code there..check this file /plugins/system/jomsocialredirect/jomsocialredirect.php