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

Registration, Authentication, Cookies

Scheduled Pinned Locked Moved Web Development
questiondatabasesecurityhelpcsharp
4 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 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.

      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!

      A 1 Reply Last reply
      0
      • A allia

        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!

        A Offline
        A Offline
        alex barylski
        wrote on last edited by
        #3

        This issue remains unresolved. How can I ensure that someone doesn't vote twice? Database :) If this site used cookies....i'd have the best articles on here :) The word of the day is legs, let's go back to my house and spread the word ;P

        A 1 Reply Last reply
        0
        • A alex barylski

          This issue remains unresolved. How can I ensure that someone doesn't vote twice? Database :) If this site used cookies....i'd have the best articles on here :) The word of the day is legs, let's go back to my house and spread the word ;P

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

          just as I suspected... and thats why its only for members... Ok, so the database will hold what? 1. A separate table with userId, and a field that holds all the [articleIds-vote] seperated by comma? (and latter traversed with split?) -OR- 2. A separate table with userId, articleId, vote for each article that was voted? Which is faster, efficient and useful? Thanks in advance! I live to code.

          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