cancel
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 "iconicmarriage.com" , 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.

1 REPLY 1
Anonymous
Not applicable

Re: Session(); not working and even stop running code

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.

 

https://www.sitepoint.com/community/t/php-7-session-start-not-working/211635