Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cache of data on Browsers when using javascript

 
Krishna Jonnalagadda
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks for the reply !! We are not storing in cookies , We are using local storage ...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, if you are using local storage you are keeping info on the computer....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic