Today I use the following code to start a Session in PHP
//verificação se o id de sessão ja existe, se não existir, cria
if (!session_id()){
// iniciando a sessão
session_start();
// buffer para evitar o erro ao acionar o headlocation
ob_start();
}
As I'm new to PHP, I'd like to know ... Do I need to make additional settings to avoid future access problems? that is, I want to prevent the site that I have developed is overloaded.
I also realized that the session is only terminated when I close the browser, what is the expiration time of the php session, and does it have to be changed?
Tips?
I'm using version 5.6