I am using Debian jessie
I installed apache 2.4 and php 7.0 but the problem that I have is that the variables are always while I put the instruction session_start () in all the pages Thank you for help me please
I am using Debian jessie
I installed apache 2.4 and php 7.0 but the problem that I have is that the variables are always while I put the instruction session_start () in all the pages Thank you for help me please
I'm no php guru but I think you could try to save the session vars into a static variable, and then check the output of that var to see if it's empty or not. There are probably ways of debugging php scripts and see what's wrong but I can't help you with that.
If I were you I would also check the permissions for /var/lib/php/session
. That folder is used to save temporary session vars used/generated by php. If let's say your apache is running as nobody or www-data or apache, set the proper ownership for that folder according to your apache user.
ps aufx | grep httpd
First entry on the left would be the user. Remember that user and issue a:
chown apacheuser:apacheuser /var/lib/php/session
Restart apache (systemctl restart httpd
) and try again and see if that works!