cookie with login: setcookie('zalogowany' , $login, time()+600);
teachers' cookie: setcookie('teacher' , $login, time()+600);
Same deal...your variable names are "zalogowany" and "teacher" instead of "username" and "password" ;) Read the cookie the same way. The second part of your cookie is how long before it expires (everyone does that differently depending on their wish) but doesn't affect the routine I posted.
