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?


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


@shreyansh007 Website URL??

Try to login to see the problem


Will check when i get to my laptop.


@akhilkumar332 Any update?