implement user login to my site

Discussion in 'iOS Programming' started by Howiieque, Oct 22, 2009.

  1. Howiieque macrumors regular

    Feb 1, 2009

    i plan to build a site and a client application as well. then the application can allow uses to login to the site. i have no experiences on this aspect. please give some suggestions that which class i should use.
    i think i need to post the user name and password to the server to verify. but after that how can the server know the current user is valid. i need to deal with cookie or session state?
    please give some comments.
  2. Niiro13 macrumors 68000

    Feb 12, 2008
    Well, your server would use a script to take the username and search it through a database of users. Then check to make sure the password is correct if the user is found (if it isn't found then it'd send a reply back down saying it can't find the user).
  3. Howiieque thread starter macrumors regular

    Feb 1, 2009
    after the uses have succeeded in login, they will do something like upload, post and modify their profile etc. i wonder that whether i need to validate them before such actions.
  4. jeremy.king macrumors 603


    Jul 23, 2002
    Fuquay Varina, NC
    There are many strategies to handle user sessions, but the key is that you do check for a valid session before allowing any operations.

Share This Page