Fatal error: Call to undefined function session_register() in .php file

Ads

 
 

Share on Google+Share on Google+

Java Coder
Fatal error: Call to undefined function session_register() in .php file
2 Answer(s)      3 years and 5 months ago
Posted in : PHP

I upgraded the PHP and MySQL and in my application following error is coming:

Fatal error: Call to undefined function session_register() in ...php file.

How to resolve the issue?

Thanks

Ads
View Answers

December 27, 2013 at 12:06 PM


Hi,

You should remove the session_register() code from your code and use following code:

$_SESSION["mysessionvariable"] ="value";

Thanks



December 27, 2013 at 12:06 PM


Hi,

You should remove the session_register() code from your code and use following code:

$_SESSION["mysessionvariable"] ="value";

Thanks


Ads









Related Tutorials/Questions & Answers: