Kukkuluuruu on kiva juttu. Miksipä siis ei.

<?php
# hash-tarkistus
if(!empty($rights)) {
	$rights_temp = $rights;
	unset($rights_temp["hash"]);
	unset($rights_temp["date"]);
	unset($rights_temp["login"]);
	$hash = md5(serialize($rights_temp));
	unset($rights_temp);
	
	if($rights["hash"] != $hash) {
		unset($rights);
	}
}
?>