cancel
Showing results for 
Search instead for 
Did you mean: 

Is it safe to store data in cookie?

krishn_signet
Participant
0 Kudos
249

We have some third party calls which brings us some data which is not sensitive. We are planning whether to go ahead with implementing cache or using cookie (with expiration). What are the downside of using cookie instead of cache?

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert

krishn_signet

The downside of using cookie instead of cache is that cookies are stored on a user's device, meaning they can be accessed by malicious actors if the user's device is compromised. Cookies also have limited storage space, so if the data you are storing is large it may not be well suited for a cookie. Additionally, cookies have no expiration time, so it is important to ensure the cookie is removed when it is no longer needed to avoid any security issues. Lastly, cookies are sent with every request, so if the data you are storing is sensitive, it could be intercepted and read by a malicious actor.

krishn_signet
Participant
0 Kudos

What is the storage limit in cookie? And data is stored only to store data which can be shown to frontend that's it. No user data is present.

And can you point me to correct trail something which I can use to have an idea of how to implement caching. SAP wiki is not that great.