I set auto complete property. Now, when anyone close browser, i want to clear cache.
Because of auto complete property, it records earlier data. I want to clear data. It should record data for that session only.
I know, its not good practice. but, i am just asking for knowledge.
would be grateful for help…
You would need to set the
autocomplete="off"property and then use cookies to store the values the user has typed in during that session.If you do not supply an expiration date/time for the cookie, it “should” delete it self after the browser closes.
After that, you just need to implement an javascript based autocomplete dropdown when the user types in the values.