Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. java script security problem?

java script security problem?

Scheduled Pinned Locked Moved Web Development
javasecuritytoolsperformancehelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hassan azizi
    wrote on last edited by
    #1

    hi i want to use java script files to store data in client computer like google's gmail mechanism for auto complete and speed matter. but i don't know how i can hide this file(which containes user data) from hackers just like gmail(i can't find gmail data in my computer and i can't save gmail page correctly to see my data stored in some files!) how gmail does it? and how i can prevent jscript file saving request from user? i'm wating thanks

    J 1 Reply Last reply
    0
    • H hassan azizi

      hi i want to use java script files to store data in client computer like google's gmail mechanism for auto complete and speed matter. but i don't know how i can hide this file(which containes user data) from hackers just like gmail(i can't find gmail data in my computer and i can't save gmail page correctly to see my data stored in some files!) how gmail does it? and how i can prevent jscript file saving request from user? i'm wating thanks

      J Offline
      J Offline
      JKroschel
      wrote on last edited by
      #2

      Actually, that isn't the way it works. Gmail stores the user data on their end and passes it along with the web page. Javascript can't store data on the client's computer. It can if you run the script locally, but the activeX component which does it is disabled if you run it off a web server (this is a security measure Microsoft put in place). What I would do is create a database of user information on your site and pass the necessary information in as metadata with the page. It is much more secure and a whole lot easier to deal with. Besides, the user can get his/her information on your site without having to be on the same computer each time.

      H 1 Reply Last reply
      0
      • H hassan azizi

        hi JKroschel thanx to your reply i have a sample that shows how javascript files can store data on clinet computer(data can be stored in array structure and can be retrived in html pages by refrencing array).this sample works great and excactly like gmail's address book match finder script.if u want i can send this sample to u.but my problem is that i can't find out how gmail hides user data(js files) from unauthorized users in clineet computer. i become so glad to talk on this subject to u. bye

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        JKroschel wrote: Actually, that isn't the way it works. Gmail stores the user data on their end and passes it along with the web page. I agree. It may seem very fast because it uses xmlhttprequest to get the data from the server, without reloading the page, with javascript. Read up on the newly coined phrase "AJAX". or try this one: http://www.softwareas.com/ajax-patterns

        ...think concepts, teach to learn...

        1 Reply Last reply
        0
        • J JKroschel

          Actually, that isn't the way it works. Gmail stores the user data on their end and passes it along with the web page. Javascript can't store data on the client's computer. It can if you run the script locally, but the activeX component which does it is disabled if you run it off a web server (this is a security measure Microsoft put in place). What I would do is create a database of user information on your site and pass the necessary information in as metadata with the page. It is much more secure and a whole lot easier to deal with. Besides, the user can get his/her information on your site without having to be on the same computer each time.

          H Offline
          H Offline
          hassan azizi
          wrote on last edited by
          #4

          hi JKroschel thanx to your reply i have a sample that shows how javascript files can store data on clinet computer(data can be stored in array structure and can be retrived in html pages by refrencing array).this sample works great and excactly like gmail's address book match finder script.if u want i can send this sample to u.but my problem is that i can't find out how gmail hides user data(js files) from unauthorized users in clineet computer. i become so glad to talk on this subject to u. bye

          L J 2 Replies Last reply
          0
          • H hassan azizi

            hi JKroschel thanx to your reply i have a sample that shows how javascript files can store data on clinet computer(data can be stored in array structure and can be retrived in html pages by refrencing array).this sample works great and excactly like gmail's address book match finder script.if u want i can send this sample to u.but my problem is that i can't find out how gmail hides user data(js files) from unauthorized users in clineet computer. i become so glad to talk on this subject to u. bye

            J Offline
            J Offline
            JKroschel
            wrote on last edited by
            #5

            I guess I stand corrected. I'd love to see the code that can do that...Could you post it? In any case, it will still be more efficient if you store the users' data on your server so the user can work with his or her information on multiple computers. This is also more secure because then you don't need to worry about other people getting access to someone else's information, which sounds like the problem you are trying to fix.

            H 2 Replies Last reply
            0
            • J JKroschel

              I guess I stand corrected. I'd love to see the code that can do that...Could you post it? In any case, it will still be more efficient if you store the users' data on your server so the user can work with his or her information on multiple computers. This is also more secure because then you don't need to worry about other people getting access to someone else's information, which sounds like the problem you are trying to fix.

              H Offline
              H Offline
              hassan azizi
              wrote on last edited by
              #6

              hi i will post my sample to your mail to see what i mean. thanks

              1 Reply Last reply
              0
              • J JKroschel

                I guess I stand corrected. I'd love to see the code that can do that...Could you post it? In any case, it will still be more efficient if you store the users' data on your server so the user can work with his or her information on multiple computers. This is also more secure because then you don't need to worry about other people getting access to someone else's information, which sounds like the problem you are trying to fix.

                H Offline
                H Offline
                hassan azizi
                wrote on last edited by
                #7

                hi i will post my sample to your mail to see what i mean. my mail is hassan.azizi@gmail.com ,pls send your mail address to me. thanks

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups