diff --git a/deluge/ui/web/js/deluge-all/Deluge.js b/deluge/ui/web/js/deluge-all/Deluge.js index 2d4e4ecdf..9401de210 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.js +++ b/deluge/ui/web/js/deluge-all/Deluge.js @@ -31,7 +31,14 @@ */ // Setup the state manager -Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); +Ext.state.Manager.setProvider(new Ext.state.CookieProvider({ + /** + * By default, cookies will expire after 7 days. Provide + * an expiry date 10 years in the future to approximate + * a cookie that does not expire. + */ + expires: new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 365 * 10)) +})); // Add some additional functions to ext and setup some of the // configurable parameters