automatic site login...

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default automatic site login...

    I have an asp.net site and I want to provide automatic login when a user
    returns to my site, similar to amazon.com.

    Currently my site authenticates the user and generates a token when the user
    has been validated, this token is unique per login and is valid unitl the
    user logouts or their session has timed out.

    How would I achieve automatic login? Do I have to store the username and
    password in the cookie?

    please advise....

    Cheers in advance

    Earth Worm Jim





    Jim Guest

  2. Similar Questions and Discussions

    1. Multi-site login, need help...
      Heya, I am wondering if anyone could suggest some possible solutions to create a login form (using Joomla's pre-fabbed one) that would login to...
    2. setting up a login/password for site
      Hi. I need to implement a registration database with email address and password on a web site and havent done this before. Is there a simple and...
    3. Novice must build site login
      :frown; I'm an experienced DW4 user new to Studio and ColdFusion. I need to build a login page for our company site. And retain a db of the...
    4. Automatic windows authentication login
      Hi I have 2 intranet sites: Intranet_1 and Intranet_2 both secured using integrated windows authentication in IIS. Using ASP.NET, is there a way...
    5. Automatic Login - Forms Authentication - Request.ServerVariables["LOGON_USER"]
      Hi there, I'm busy building a site that authenticates users from a database but would like Windows authenticated users to bypass the logon screen...
  3. #2

    Default automatic site login...

    You can store the user information into a cookie.
    But remember to recreate the value of the cookie, because
    if someone grabs the cookie, they can use it to login. Do
    not save passwords in the cookie. I should create a
    encrypted key and recreate this key every 10 minutes.
    This key could also be stored in a service or data base,
    so when a user want access to a site, the key is
    retrieved from the cookie and verified against the
    services or data base.

    You can also take a look at Forms authentication in
    ASP.Net.

    /Fredrik Normén NSQUARED2
    >-----Original Message-----
    >I have an asp.net site and I want to provide automatic
    login when a user
    >returns to my site, similar to amazon.com.
    >
    >Currently my site authenticates the user and generates a
    token when the user
    >has been validated, this token is unique per login and
    is valid unitl the
    >user logouts or their session has timed out.
    >
    >How would I achieve automatic login? Do I have to store
    the username and
    >password in the cookie?
    >
    >please advise....
    >
    >Cheers in advance
    >
    >Earth Worm Jim
    >
    >
    >
    >
    >
    >.
    >
    Fredrik Normén NSQUARED Guest

  4. #3

    Default Re: automatic site login...

    I was minding my own business when Jim blurted out:
    > I have an asp.net site and I want to provide automatic login when a user
    > returns to my site, similar to amazon.com.
    >
    > Currently my site authenticates the user and generates a token when the
    user
    > has been validated, this token is unique per login and is valid unitl the
    > user logouts or their session has timed out.
    >
    > How would I achieve automatic login? Do I have to store the username and
    > password in the cookie?
    >
    > please advise....
    >
    > Cheers in advance
    >
    > Earth Worm Jim
    At what point is the token invalidated? Can you just persist the token and
    store the token itself in a cookie?


    --
    Insert corny line here


    -=Chris=- Guest

  5. #4

    Default Re: automatic site login...

    thanks for the answer, but the answer is not really acceptable.....

    FYI

    I use Active Directory behind a web service to validate my users, thus not
    having to have a database to store my user accounts on a machine, and I DO
    NOT want to start creating tables in a database that relate to user security
    settings and user logon status.

    cheers

    Jim






    "Fredrik Normén NSQUARED" <fnormen@hotmail.com> wrote in message
    news:1d5c01c38299$c802f4f0$a101280a@phx.gbl...
    You can store the user information into a cookie.
    But remember to recreate the value of the cookie, because
    if someone grabs the cookie, they can use it to login. Do
    not save passwords in the cookie. I should create a
    encrypted key and recreate this key every 10 minutes.
    This key could also be stored in a service or data base,
    so when a user want access to a site, the key is
    retrieved from the cookie and verified against the
    services or data base.

    You can also take a look at Forms authentication in
    ASP.Net.

    /Fredrik Normén NSQUARED2
    >-----Original Message-----
    >I have an asp.net site and I want to provide automatic
    login when a user
    >returns to my site, similar to amazon.com.
    >
    >Currently my site authenticates the user and generates a
    token when the user
    >has been validated, this token is unique per login and
    is valid unitl the
    >user logouts or their session has timed out.
    >
    >How would I achieve automatic login? Do I have to store
    the username and
    >password in the cookie?
    >
    >please advise....
    >
    >Cheers in advance
    >
    >Earth Worm Jim
    >
    >
    >
    >
    >
    >.
    >

    Jim Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139