0

Fatal error: Uncaught Error: Call to undefined function session_register() in C:\xampp\htdocs\FinalsActivity1\checkout-pay.php:20 Stack trace: #0 {main} thrown in C:\xampp\htdocs\FinalsActivity1\checkout-pay.php on line 20

CODES:

session_register("SESS_CHANGEID");

When i add to basket and proceed to payment this error pops up.

atline
  • 23,297
  • 15
  • 58
  • 86
LeifapA
  • 3
  • 2
  • Here is your solution. the question is duplicate. [https://stackoverflow.com/questions/16082420/call-to-undefined-function-session-register](https://stackoverflow.com/questions/16082420/call-to-undefined-function-session-register) – Sayed Mohd Ali Nov 08 '18 at 07:01

1 Answers1

0

This method is no longer available after php 5.4.0

Alternatively use $_SESSION['SESS_CHANGEID'] = "Your value here"; Making sure you have a session_start() somewhere before in your code.

ringunger
  • 79
  • 6