Cookie HELP!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webdex
    New Member
    • Nov 2006
    • 2

    Cookie HELP!

    I'm new to cookies and for about 20 hours during the past two days have been banging my head over this problem and have developed nothing but a huge headache.

    I have a large form for a college website that I need submitted anonymously by students to evaluate their courses for this semester. I am trying to use the cookie(s) to prevent them from evaluating a single course more than once, although they can evaluate more than one course (i.e. IT101, IT202, IT303) by accessing the form again. I've made the course number field (via a select box) the only required field.

    How do I code the cookie so as to allow them to evaluate another course and (so I was thinking) not see the course they've already evaluated in the select box (so as to avoid spamming a course with negative ratings if they have a bug up their butt)?

    If nothing else, I'd be satisfied with letting them waste their time filling out the form again and get rejected because they have already evaluated that particular course.

    I've come to realize that this is beyond my knowledge, and hours and hours of Googling is not going to solve this problem. Any help (and especially coding examples) would be greatly appreciated.

    Thanx!
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    For a determined student cookies are nog enough protection against misuse, if they are stored at his computer (client side). You can delete any cookie stored at your PC.

    A safer solution is to use the server to either store the cookies or store the student data in a database.

    Ronald :cool:

    Comment

    • webdex
      New Member
      • Nov 2006
      • 2

      #3
      *sigh* I know that, but this is what the client wants. If I could have done it with a database it would have been done days ago.

      Comment

      Working...