In which cases I can use session() ? I need an aplication which autentize user from db and then open for him a session is it right or the syntax is wrong. Which functions are for this applications? Any idea....
I'd say what you're looking for is session_start()
You need to call this function once for every script that uses session data, before the headers are sent.