Is there way to make _pk_id _pk_ses cookies secured? I am using matomo recent version.
If you mean by that, that you would like to add the
secure flag to all tracking cookies (so they are only sent with HTTPS requests), then this guide is the answer:
Please next time ask on the forum (https://forum.matomo.org/) as this issue tracker is only intended for bug reports and feature requests.