Changeset 101 for trunk/trax/vendor/trax/session.php
- Timestamp:
- 12/15/05 19:09:02 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/session.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/session.php
r96 r101 119 119 function isset_var($key) { 120 120 if(self::is_valid_host()) { 121 return isset($_SESSION[self::get_hash()][$key]); 121 if($_SESSION[self::get_hash()][$key]) { 122 return true; 123 } 122 124 } 125 return false; 123 126 } 124 127 125 128 function isset_flash($key) { 126 129 if(self::is_valid_host()) { 127 isset($_SESSION[self::get_hash()]['flash'][$key]); 130 if($_SESSION[self::get_hash()]['flash'][$key]) { 131 return true; 132 } 128 133 } 134 return false; 129 135 } 130 136 131 function flash($key, $value ) {137 function flash($key, $value = null) { 132 138 if(self::is_valid_host()) { 133 139 if($value) {
