Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Director::history($pagesBack=1)


Reply

1061 Views

Avatar
xmedeko

15 July 2007 at 3:59pm (Last edited: 15 July 2007 9:32pm), Community Member, 94 Posts

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.