Based on the provided video snippet, the technique involves carefully tucking the cotton candy in along the edges of the bag to help preserve it. More detailed instructions on specific techniques to make cotton candy last longer in a bag aren't provided in the given reference.