How to fix Session Error in CodeIgniter 3.1.11 and PHP 7.4.3

Problem:

When i use session then this error message appear :

A PHP Error was encountered
  Severity: Warning
  Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time
 Filename: Session/Session.php
 Line Number: 282

Question:

How to fix this … ?

Answer:

Give one value to session.auto_start in php.ini:

session.auto_start = 1

Then restart your webserver

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *