Forums

Re-using the nonce - is this true? (1 post)

  1. coombesy
    Member
    Posted 7 months ago #

    Hi,

    I'm sure this has definitely been discussed here before but I can't find any posts.

    My app makes multiple ajax requests to the server but the main page never refresh's, so I need to be able to re-use nonces, or at least the nonce actions, and I need to do this securely.

    My research has led me to 2 solutions:

    1. says that nonces in wordpress last 24hrs so just reuse them scroll to comment by brenton
    2. the other says to get the server response to give a new nonce back as json to my app Multiple ajax nonce requests

    For example. Say a list of items, and an ajax delete button, that would need to be called more than once, is the correct use to send a new nonce back as a server request or just reuse the same nonce created at run?

    Or is there another way to accomplish this?
    thanks,
    daithi

Reply

You must log in to post.

About this Topic