Issue with login-password in a web page

Discussion in 'ASP .Net' started by Rheadore, Aug 23, 2004.

  1. Rheadore

    Rheadore Guest

    Hi ,

    Please give me any links/examples to create a page which can store my
    password in cache, call that cache when I enter my userid, automatically
    insert my password in the text box later.

    Please suggest.
    Rheadore, Aug 23, 2004
    #1
    1. Advertising

  2. Rheadore

    Scott Allen Guest

    Hi Rheadore,

    This would be a feature of the browser and not something you could do
    from ASP.NET on the server side.

    --
    Scott
    http://www.OdeToCode.com

    On Mon, 23 Aug 2004 18:30:26 +0530, "Rheadore"
    <> wrote:

    >Hi ,
    >
    >Please give me any links/examples to create a page which can store my
    >password in cache, call that cache when I enter my userid, automatically
    >insert my password in the text box later.
    >
    >Please suggest.
    >
    >
    >
    Scott Allen, Aug 23, 2004
    #2
    1. Advertising

  3. If you mean storing any value in the Cache Object then it would't be a correct solution. The Cache object is global to the application (similar to the Application Object, but allow you to set expiration, dependencies, etc), so every user would access the same values.

    In your scenario you could use a cookie (storing encrypted values) if you want to persist that password even after the session expires

    In your case I understand you want to use Session objects, you could check for the existence of that Session object every time you want to use that stored password

    in the login form:

    Session("myPassword") = txtPassword.Text.Trim

    for password retrieval:

    'check for a valid user Id, and if validation succeeds retrieve password
    if Session("myPassword") Is Nothing Then
    txtPassword.Text.Trim = Session("myPassword")
    End If

    Hope this helps

    Alan Ferrandiz Langley
    www.geekswithblogs.com/aferrandiz

    "Rheadore" <> escribió en el mensaje news:...
    > Hi ,
    >
    > Please give me any links/examples to create a page which can store my
    > password in cache, call that cache when I enter my userid, automatically
    > insert my password in the text box later.
    >
    > Please suggest.
    >
    >
    >
    >
    Alan Ferrandiz [MCT], Aug 23, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. feng
    Replies:
    4
    Views:
    1,287
  2. pj
    Replies:
    2
    Views:
    1,915
  3. Shannon

    login page stays on login page

    Shannon, Jan 9, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    518
    Shannon
    Jan 9, 2008
  4. AAaron123
    Replies:
    2
    Views:
    2,091
    AAaron123
    Jan 16, 2009
  5. AAaron123
    Replies:
    1
    Views:
    1,312
    Oriane
    Jan 16, 2009
Loading...

Share This Page