panique / php-login-minimal

An extremely minimal login / register script in pure PHP.
608 stars 251 forks source link

Problems with session_start(); #22

Closed difelici closed 9 years ago

difelici commented 9 years ago

Seems like there is a error with the session_start(); when i insert the code:

if (!isset($_SESSION)) { echo 'session not set'; } else { echo print_r($_SESSION, true); }

Aparently there is no session set, but when i insert session_start(); occurs another error : A session had already been started - ignoring session_start()

Somebody please help me.

panique commented 9 years ago

He, have you installed and used the script like described in the install tutorial ? Have you checked the live-demo (where this error does not occur) ? Maybe your php-version is too new (or too old) or so ?

difelici commented 9 years ago

My php version is 5.5. I downloaded the demo version and inserted the code to test the session e and the same error ocurred

difelici commented 9 years ago

Thanks for answered me. Yeah i installed and used the script like described in the install tutorial. i have tried different options to solve the problem but its not working