Testing with session |
Hello,
I'm trying to test an "Auth" library I created. Obviously, that library uses the session. My first test looks like this: PHP Code: public function testConstructor() See the line where I ask if $_SESSION['user'] does not exist? That line produces an error: Code: ErrorException: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time If I understand it correctly, that means "session_start()" hasn't been called before the first "echo". I see two possibilities:
Thanks in advance! |
Messages In This Thread |
Testing with session - by SteeveDroz - 10-27-2019, 12:05 AM
RE: Testing with session - by John_Betong - 10-27-2019, 08:18 PM
RE: Testing with session - by SteeveDroz - 10-27-2019, 10:31 PM
RE: Testing with session - by John_Betong - 10-28-2019, 01:49 AM
RE: Testing with session - by kilishan - 10-28-2019, 06:34 AM
RE: Testing with session - by SteeveDroz - 10-30-2019, 12:06 PM
|