How can we register the variables into a session?

Total Post:505

Points:2525
PHP 
PHP
 1604  View(s)
Ratings:
Rate this:
  1. Post:505

    Points:2525
    How can we register the variables into a session?

    session_register($session_var);

    $_SESSION['var'] = 'value';

Answer