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

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

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

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









Related Tutorials/Questions & Answers:

Ads