volosoft / jtable

A JQuery plugin to create AJAX based CRUD tables.
http://www.jtable.org
1.1k stars 506 forks source link

Please disable cookies! #2169

Open centurianii opened 6 years ago

centurianii commented 6 years ago

Your cookies (in plural) messes with my authentication cookies and it's a bad practice to achieve memory!

Have you noticed that after a while cookies are piled up?

Which lines should I go and delete?

hikalkan commented 6 years ago

You can override _setCookie & _getCookie functions to change cookie storage to local storage. See https://github.com/hikalkan/jtable/blob/master/lib/jquery.jtable.js#L1246

Extending is easy. See an extension to understand how it works:

https://github.com/hikalkan/jtable/blob/master/lib/extensions/jquery.jtable.record-actions.js#L13