Cookies Popup question

This is a really stupid question about Cookies but…
I have done nothing to actively create anything to do with Cookies in my app but I now have to create a Cookies screen that pops up when it loads to warn people that I use cookies and give them the option to accept or reject them. Fair enough, every site has these.
This is Rakuten’s (play.com)

It popped up the second I entered their site, never having visited it before.
I hit “Reject all cookies” and it went away. (I then revisited their site and it didn’t pop up so maybe it didn’t delete cookies as it remembered me.)
My question is how do you get a popup like this to appear and be controllable before the user has logged in?
And how would I record the fact that they’ve Accepted cookies if they haven’t logged in - can this be done through Custom States? They seem a bit short term.
I just installed a Local Storage PlugIn to create a Cookie but this was only so I could try to get people to reject or accept cookies which seemed silly.
Can anyone tell me what I’ve missed or what I need to do to achieve Cookie happiness on my site?

Hi @joefarrowsmith ,
You can create Javascript to create cookie with value to the enduser browser (Is based on users clicking the button - accept / reject etc) then again same user visiting your site, you can read the cookie and ensure the value. if it empty then you can show the popup otherwise leave it.