Stopping and restarting a subscription

I have been searching the forums and have not found anything addressing this.

I want to set up a membership site where each month a user gets new content, but if they cancel for a few months I don't want them to get the content that came out while they were not paying.

For example John does a free 1 month trial in July upgrades to the paid subscription for August and September, but cancels his membership for October. He misses October, November and December and signs up again in January with his same account. He now has access to August, September, and January.

Thanks for your help