SESSION variables not saving

I am creating a basic login and signup in PHP. On my local, they were working fine but on 000webhost it is facing issue. To find out the problem, I just used vard_dump($_SESSION) but it is empty. I am sure it is not problem in my code.
Also, I tried every possible answer on stackoverflow and the community answers. Can anyone help me?

1 Like

Add this on your .htaccess

php_flag output_buffering on 

I have already added this line to my .htaccess file but it did not help

1 Like

@shreyansh007 Website URL??

dooplacecampus.000webhostapp.com
Try to login to see the problem

Will check when i get to my laptop.

1 Like

@akhilkumar332 Any update?