Green’s Dictionary of Slang

cookie n.2

1. [1930s] (US prison) cocaine.

2. [1930s–60s] (US drugs, also cookee) an opium addict.

3. [1990s+] (drugs) crack cocaine in its solid, rock form.