To je moc široký pojem, ale řeší se to přes přihlašovací formulář, php, mysql, session, cookies, referrer, atd.