fbpx

Explain the concept of sessions in PHP. How are sessions started and destroyed?

Sessions in PHP allow you to preserve data across multiple pages. To start a session, use session_start(). To destroy a session, use session_destroy(). Sessions are typically used to store user information after login.

# Dream job to realty