ios safari extensions often lose cookies

My safari plugin login verification is based on cookies. I found that as long as the plugin is used for a period of time, refreshing the page and making another request will result in the loss of cookies. I want to know if there are any other ways besides changing the login verification method to bypass cookies?

ios safari extensions often lose cookies
 
 
Q