Welcome Guest, Not a member yet? Register   Sign In
session_start() errors
#1

(This post was last modified: 06-25-2020, 01:53 AM by brankoads.)

Hello,
I have install CI 3.1.4 on php 7. Site work fine but have some errors with login, registration, and login on admin part.
Have turn on all logs, and this is first log problems:

ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 284
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> session_set_cookie_params(): Cannot change session cookie parameters when headers already sent /home/mysite/public_html/system/libraries/Session/Session.php 296
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 306
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 316
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 317
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 318
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 319
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> ini_set(): Headers already sent. You cannot change the session module's ini settings at this time /home/mysite/public_html/system/libraries/Session/Session.php 377
DEBUG - 2020-06-25 07:59:48 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> session_set_save_handler(): Cannot change save handler when headers already sent /home/mysite/public_html/system/libraries/Session/Session.php 110
ERROR - 2020-06-25 07:59:48 --> Severity: Warning --> session_start(): Cannot start session when headers already sent /home/mysite/public_html/system/libraries/Session/Session.php 143
INFO - 2020-06-25 07:59:48 --> Session: Class initialized using 'files' driver.
DEBUG - 2020-06-25 07:59:48 --> Session class already loaded. Second attempt ignored.


Here are Session.php lins:

- Session.php 284
ini_set('session.name', $params['cookie_name']);

-Session.php 296
TRUE // HttpOnly; Yes, this is intentional and not configurable for security reasons

Session.php 306
ini_set('session.gc_maxlifetime', $expiration);

Session.php 316
ini_set('session.use_trans_sid', 0);

Session.php 317
ini_set('session.use_strict_mode', 1);

[font=Tahoma, Verdana, Arial, sans-serif]Session.php 318[/font]
[font=Tahoma, Verdana, Arial, sans-serif]ini_set('session.use_cookies', 1);[/font]

Session.php 319
ini_set('session.use_only_cookies', 1);

Session.php 377
ini_set('session.sid_length', $sid_length);

-[font=Tahoma, Verdana, Arial, sans-serif]Session.php 110[/font]
session_set_save_handler($class, TRUE);

Session.php 143
session_start();


CI ver 3.1.4
php 7

Thanks in advance
Reply




Theme © iAndrew 2016 - Forum software by © MyBB