If you want to register a session variable from within a function, you need to make sure to make it global using the global keyword or the $GLOBALS[] array, or use the special session arrays as noted below.
この関数は全ての変数のセッションへの登録に成功した場合に TRUE を 返します。