What does it mean to give a guy the cookie?

My female friend said she was giving her best friend/boyfriend the cookie but I'm not sure what that means exactly. please help.
What does it mean to give a guy the cookie?
Post Opinion