Please help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary

    #1

    Please help


    Hi,

    I have a login screen with a remember user checkbox. I am storing the Login
    Information (UserName and Password) on the client machine using cookies. The
    text boxes used to accept the username and password are both ASP server
    controls. The TextMode property for the box accecpting password is set to
    "password". I save the login information when the user checks the "remember
    user" checkbox (using cookies) and retrieve this information every time he
    tries to relogin(ie when the login page is requested ). The problem is that
    the password cannot be displayed in the text box(TextMode set to "password")
    as astrix and is seen as blank (Though it is correctly stored in the cookie
    as seen using page level trace)

    I am using Microsoft Development Environment 2002 version 7.0.9466 &
    Microsoft.NET framework 1.0 version 1.0.3705

    Any suggestions would be highly appreciated.

    TIA,

    Gary


  • Kevin Spencer

    #2
    Re: Please help

    An "input type=password" (which is NOT an "input type=text" textbox object)
    HTML object can not have its' value persisted. This is a Security
    consideration. What would be the point of requiring a password if ANY user
    that opens that URL in the browser on the machine with the password stored
    in a cookie doesn't have to type in the password?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    All hotels in Benidorm. The best selection of Benidorm hotels with reviews and maps. Book in advance and save.

    Neither a follower nor a lender be.

    "Gary" <msnews@microso ft.com> wrote in message
    news:eh94ffVZDH A.2344@TK2MSFTN GP09.phx.gbl...[color=blue]
    >
    > Hi,
    >
    > I have a login screen with a remember user checkbox. I am storing the[/color]
    Login[color=blue]
    > Information (UserName and Password) on the client machine using cookies.[/color]
    The[color=blue]
    > text boxes used to accept the username and password are both ASP server
    > controls. The TextMode property for the box accecpting password is set to
    > "password". I save the login information when the user checks the[/color]
    "remember[color=blue]
    > user" checkbox (using cookies) and retrieve this information every time he
    > tries to relogin(ie when the login page is requested ). The problem is[/color]
    that[color=blue]
    > the password cannot be displayed in the text box(TextMode set to[/color]
    "password")[color=blue]
    > as astrix and is seen as blank (Though it is correctly stored in the[/color]
    cookie[color=blue]
    > as seen using page level trace)
    >
    > I am using Microsoft Development Environment 2002 version 7.0.9466 &
    > Microsoft.NET framework 1.0 version 1.0.3705
    >
    > Any suggestions would be highly appreciated.
    >
    > TIA,
    >
    > Gary
    >
    >[/color]


    Comment

    Working...