SESSION variables not saving


#1

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?


#2

Add this on your .htaccess

php_flag output_buffering on 

#3

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


#4

@shreyansh007 Website URL??


#5

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


#6

Will check when i get to my laptop.


#7

@akhilkumar332 Any update?