×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / I don't want browser remembering user name and password. What should I do? ( I am writing Java Servlet code ).
    • It is dificult to understand your issue. If you don't put usename and password into cookies, the browsers have no way to remember them.
      • Sorry I didn't make it clear. The situation is that
        I don't use cookie to store user name and its password for next time use. What I want is that user must enter his user name and password each time when he want log in. But in IE browser, you can click the input area and it will show the previously entered user name and ******* password with a selection lists. So user acturally don't need to enter his user name and password each time. It is convenient for the same user, but is alse dangerous if other person may use the same computer and can log in without knowing the required user name and password. Lots of web base email service site like netscape web mail has this situation.

        Does that make sense? Thanks for your help
        • It is related to the browser configuration
          The phenomena you see is because of your browser configuration.
          Pls go to tools|Internet Options|Security, Click on that "Custom Level".
          You will see you have enabled Cookies. Whatever you are talking about,
          I can assure you that the browser "remembers" the password because
          the server-side programm have put the password into the cookie. Without cookie, the browser cannot remember anything. To solve your problem, you make set the age of your cookies, or try to expire the cookie as the user close the browser.

          Hope some other guys can give you more expert answers.
          • You are right. Many thanks for your valuable solution. And I also need to know how I can contribute for the web cost.
            • To Jerry again: About Auto Complete
              After some thinking, I guess you wanted to disable "Auto Complete" functionality in the browser. Right? The user can do this by visiting
              Tools|Internet Options|Content|Auto Complete. ----I am talking about IE.

              I am not sure how to do this by programming ( using JavaScript or VB Script). This is a browser configuration problem. The user has the privilege to choose to remember all the usernames and passwords.
              If you "brutely" disable the "auto complete", you overdo. I guess it would be a better idea to using an "alert" ask the user to disable "auto complete".

              Technically, it may be easier to use VB Script to disable the "auto complete". I don't think "unsigned Javascript" can do that. Again, I suggest you consider if it is necessary for you to disable the "autocomplete" functionality in your user's browser. If you do so, I think you have reached your hand too far. ;-):

              Sorry for having misunderstood your earlier postings.
      • Error in Uploading a text file using com.oreilly.MiltipartRequest Package.
        本文发表在 rolia.net 枫下论坛Hi Jabber!

        I use an ISS server + Resin( supporting API2.2 ). I need to upload a text format file and populate data into database. I just follow the sample code provided by www.servlets.com to do it. ButI have a problem exactly same as another one who put a message on a bbs today:
        ===================================================
        I am trying to uplaod a file using com.oreilly.MiltipartRequest Package.

        But when i am uploading any file it is giving me the java.io.IOException: Corrupt form data : no leading boundary

        i tried to print the boundary it is :
        boundary=---------------------------7d11c22c748,multipart/form- data; boundary=---------------------------
        7d11c22c748,multipart/form-data; boundary=-----------------------
        ----7d11c22c748

        Can anyone tell that why my boundary is repeating three times is, it normal and if it is allright then why i am getting the error of "Corrupt form data : no leading boundary"

        I am using IE 5.5,and jsdk2.0.

        Is there any other method to upload a file?
        =======================================================

        Do you have any idea about this?更多精彩文章及讨论,请光临枫下论坛 rolia.net
        • I am afraid you need make your data file does not meet the requirements of Jason Hunter's library.
          I have not ever used that class. But I think it is easy to pin down the problem. You can download Jason Hunter's source file and have a look at his requirements of the data file format. Good luck.
          • The problem is not caused by file or its format because when I click the submit button no matter a file is selected or not, the error message still the same.