Delete Coookie

Delete Coookie

naznaz Posts: 3Questions: 0Answers: 0
edited April 2011 in General
hi,

i ma looking for the function to delete cookie and redraw the table ..... can some one help me ....


naz

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    There isn't a built in way to do this at the moment. You'd need to get the cookie name and delete it 'manually'. Something like:

    [code]
    document.cookie = sOldName+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+aParts.join('/') + "/";
    [/code]
    which is taken from DataTables code. You'll need to know the path and the name of the cookie.

    Allan
  • naznaz Posts: 3Questions: 0Answers: 0
    Hi,
    Thanks Allan it's work fine...

    naz
This discussion has been closed.