• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Cache of data on Browsers when using javascript

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I think this is a common problem when javascript is used. In one of my applications that I've built, one of the requirement was to not use javascript.

I'd appreciate if you can provide some info on the following:
a. How do we make sure the data is not cached on the browsers ?and
b. How to ensure the application security when javascript (JQuery,AJAX etc) is used extensively ?

Thanks
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

a. How do we make sure the data is not cached on the browsers ?



How would the data be cached? Are you storing it to cookies or local storage?

b. How to ensure the application security when javascript (JQuery,AJAX etc) is used extensively ?



How do you secure regular http calls? XMLHttpRequests are normal gets/posts/puts/etc. Same rules apply. And do not do secure business logic in JavaScript code and validate everything on the server.

Eric
 
Krishna Jonnalagadda
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply !! We are not storing in cookies , We are using local storage ...
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Um, if you are using local storage you are keeping info on the computer....
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic