Recommended way to set, get, remove cookies?

Aren’t these only for session cookies? Need something to handle cookies that persist after the user closes the browser.