Yeah, what he said.
An access token can be anything. Like a randomly generated 6 digit number, for instance. Store it in a database or a KeyValueStore (something that will persist past a server restart). When a user logs in, set a Cookie with token=123456 (or whatever) and then you can check to see if that Cookie's token value is in your database whenever that user comes back to your site.