carhartl/jquery-cookie — pull request #54 by AlphaGit (2012-03-07 22:05:53+00:00)
Title: Custom expires option

Hi! I thought it would be cool to have the cookie accept a complex expires option that could automatically calculate when a cookie should expire.

As usually when setting cookies we don't really _when_ it expires but rather _how far away from now_ it does expire, I constructed a little object that would take care of that.

I tried to be careful in conserve all the previous options so that nothing would break with making this update, but still something may have slipped my sight.

Thanks!
Alpha.-