Umm. Provided $_SESSION['new_var'] exists before something prevents it from being set (redirect beforehand or perhaps a logout) the doing like:
Code:
$_SESSION['new_var'] = 'test this';
will set the session variable. Be sure that you have the underscore and everything else about the line is properly formatted. Otherwise you may need to post your code in order to figure out what is going wrong because I frequently will use that type of assignment so that results can be immediately seen without affecting page display, loading extra files/folders, or affecting program flow.
Bookmarks