Post Random Cookie to DB Question

Discussion in 'PHP' started by jawinn, Nov 20, 2006.

  1. #1
    I need to force a cookie onto users who log into a site. I want the cookie to be stored in their user info in my DB. I have a field in my mysql db for this titled "cookid". I can't figure out what the code for this would be. I want the cookie to use the rand() attribute. Can anyone help me out?

    thx,
     
    jawinn, Nov 20, 2006 IP