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. ASP.NET
  4. Registration, Authentication, Cookies

Registration, Authentication, Cookies

Scheduled Pinned Locked Moved ASP.NET
questiondatabasesecurityhelpcsharp
3 Posts 2 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.
  • A Offline
    A Offline
    allia
    wrote on last edited by
    #1

    The best way I can think of is to relate my question to what codeproject does: Remember Me? After logging in, how does the system recognize me the next time without storing WhoIs data in the cookie? If I would store the developer_id one could easly make his own cookie as another developer. Storing a password is unsafe and I would like to avoid it. Vote twice on sunday When voting for an article, it is fair to only vote once. How can I ensure that? I looked in the codeprojects' cookie and didn't see any recollection of my past votes... Is there a database involved? can someone suggest a way to approach this issue? Needs I thought that it is wise to store a developer_id and alias in a cookie and that would help out when approaching FORMS throughout. With that, I would extract the necessary data from the DB - e.g. Email and "place" it where it is needed. But, as I mentioned, by just browsing the site, one can easily bake his own cookie with another existing developers' id and alias... Encryption If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP (NOT .NET) ? Thank you.

    A I 2 Replies Last reply
    0
    • A allia

      The best way I can think of is to relate my question to what codeproject does: Remember Me? After logging in, how does the system recognize me the next time without storing WhoIs data in the cookie? If I would store the developer_id one could easly make his own cookie as another developer. Storing a password is unsafe and I would like to avoid it. Vote twice on sunday When voting for an article, it is fair to only vote once. How can I ensure that? I looked in the codeprojects' cookie and didn't see any recollection of my past votes... Is there a database involved? can someone suggest a way to approach this issue? Needs I thought that it is wise to store a developer_id and alias in a cookie and that would help out when approaching FORMS throughout. With that, I would extract the necessary data from the DB - e.g. Email and "place" it where it is needed. But, as I mentioned, by just browsing the site, one can easily bake his own cookie with another existing developers' id and alias... Encryption If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP (NOT .NET) ? Thank you.

      A Offline
      A Offline
      allia
      wrote on last edited by
      #2

      Ok, I am still in need of help but this is what I have so far: I have decided to encrypt the cookie data which holds only a developer_id and alias. using double encryption I can later compare if the data has been tampered with or not. votes This issue remains unresolved. How can I ensure that someone doesn't vote twice? CP rules!

      1 Reply Last reply
      0
      • A allia

        The best way I can think of is to relate my question to what codeproject does: Remember Me? After logging in, how does the system recognize me the next time without storing WhoIs data in the cookie? If I would store the developer_id one could easly make his own cookie as another developer. Storing a password is unsafe and I would like to avoid it. Vote twice on sunday When voting for an article, it is fair to only vote once. How can I ensure that? I looked in the codeprojects' cookie and didn't see any recollection of my past votes... Is there a database involved? can someone suggest a way to approach this issue? Needs I thought that it is wise to store a developer_id and alias in a cookie and that would help out when approaching FORMS throughout. With that, I would extract the necessary data from the DB - e.g. Email and "place" it where it is needed. But, as I mentioned, by just browsing the site, one can easily bake his own cookie with another existing developers' id and alias... Encryption If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP (NOT .NET) ? Thank you.

        I Offline
        I Offline
        Ian Darling
        wrote on last edited by
        #3

        allia wrote: If by now you are thinking why not use encryption, then do you know of a good encryption algorithm for ASP How about using the Crypto API/CAPICOM? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/using_capicom.asp[^] -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

        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