Is that method working? I suggest something like
[code php]
$history = Session::get('history');
if (!$history) {
return null;
}
return $history[sizeof($history)] - $pagesBack - 1;
}
Anyway, it's used only once in Security.php. Even Director::redirectBack() do not use it. So, is it necessary to have this? Because the session grows larger and larger, when somebody surf the pages.