Would it be possible to write an applet that a user can download that can present the user with a list of cookies on their PC and allow them to delete one or more of them?
this has to be done on ALL machines the applet wil run on. you have to update the security policy file to grand permissions for your applet.
look under c:\jdk1.3\jre\lib\security\java.policy..or where every you have installed the jdk. there is also a program called policytool.exe...have a look at this
So this java.policy file has to be updated on all PCs running the applet? What if we want them to download it from the internet and we don't have control over their PCs? Would wwe update the file during with an install shield or something?
What's the sandbox? Someone mentioned the java sandbox and that you have access to everytthing in the sandbox. He was thinking the cookies are in the sandbox so we have access to them.
the sandbox is java security concept. you have total control over that ever is in your sandbox unless your policy file states otherwise. anything outside, you can't touch. thats why applets are supposed to be safe to run and run in your browser(its sandbox) only.
i don't know if cookies are within the sandbox. if so, your laughing although i can't see any classes or methods that read or reference cookies....doesn't mean they're not there though!!
you can do it during the install shield process but remember, if you do that, you will be changing peoples security policy, probably without telling them about it. americans tend to get quite peeved about things this!
u can grand special priviledges to particular classes when they are loaded into memory. see java.security.Permissions java.security.Security etc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.