Showing results for 
Show  only  | Search instead for 
Did you mean: 

Session(); not working and even stop running code

Hi, my website is working well on my local machine with xampp server  but the session not working working on my hosting server.  If I remove session_start();   then my website showing all the content of my website but with the ssession_start();  website silent with no message and no php code running .  my website is "" , when I click login button after filled username and password, website stuck on  login.php.  Even this page I write a complete code , in case username and password not correct.


please guide me.

Not applicable

Hi @linkproject,


first make sure that your php versions for XAMPP and Hosting are the same....... as there were incompatibilities noted for the 'session' function when upgrading to PHP 7 from 5.6 etc.