Adding iCookieUrl

Adding iCookieUrl

miwoemiwoe Posts: 14Questions: 2Answers: 0
edited October 2013 in Feature requests
Hi,

I would like to add the property iCookieUrl, but sadly, I am not that fast to determine the place where the cookie is saved and the URL is passed?

My issue:

The last argument in my web app URL is the ID of the loaded entity => domain.de/namespace/controller/id
The cookie is saved then with this url pattern, but I would like to save the cookie as domain.de/namespace/controller
for some pages, for some not.

BR, miwoe

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    You would need to use fnCookieCallback and create your own cookie. There isn't an option in DataTables to modify the path.

    I should note that DataTables 1.10 has state saving done by localStorage rather than by cookies.

    Allan
This discussion has been closed.