Cogan started his career with Millwall and spent just one season with the Bees before deciding to move on.
Gills striker Dean McDonald is close to finalising his move to Scotland to join Inverness Caledonian Thistle.