Custom Java or JSP Site

The installation instructions are the same as that of Custom PHP Site. However, before proceeding to them, please make sure that you have configured your server.

No modifications are required to your existing Java or JSP site code.

Code Modification

The only modification that needs to be performed in your existing code is to add a cookie like userid when the user logs in and reset it to 0 when the user logs out. Then CometChat can use this cookie to read the logged in user’s ID.

Follow hosting CometChat on a separate server instructions

Follow the installation instructions for CometChat on separate server.

Follow Custom PHP site instructions

Once that above is completed, follow the installation instructions for custom PHP site.

Not finding what you need?

The CometChat team is here to help!