Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is setting php.ini's session.auto_start to 1 considered bad practice?

Tags:

php

session

I was playing around with php.ini's session.start_auto and tried setting it to 1. The site I am building requires session management on every page anyways and the server only contains the one site. Is this considered bad practice (like having globals turned on - which I dont BTW!) - php.net doesn't say a lot about it.

like image 706
enkdr Avatar asked Nov 24 '11 12:11

enkdr


1 Answers

Nah, why should it be? In principle, its the same as having session_start(); as the second line in every page.

like image 162
Jan Dragsbaek Avatar answered Sep 25 '22 20:09

Jan Dragsbaek