Upvote:5
Cochin airport does not currently have an airside transit facility; everyone who arrives from outside India must clear immigration and customs before going to their next flight. This means that you will require a visa to enter India.
You can obtain a transit visa which allows you to enter India for up to 3 days. You will be able to leave the airport with this visa. There is not a visa on arrival; you must obtain the visa in advance. You can obtain the visa by following the instructions given at the High Commission of India in Kuala Lumpur. There are many fake web sites and service providers; you should use only those web sites and service providers given by the High Commission.