Tags

,

1. If you use session (PHP), use UTF-8 encoding without BOM
Some text editors in windows don't support UTF-8 without BOM such as Editplus (T_T)

2. session_register(), session_unregister() are deprecated for secureity issue
In order to use session variables, access via $_SESSION["yourname"]; directly.
For initializing, declare $_SESSION["yourname"]; is enough.
For destruction, you can use unset($_SESSION["yourname"]);
Advertisements