Hi Kenjis
Thanks for the ideas
Had a long look at various solutions, replacing the session class was just a pain as it did not fix the problem and caused others.
Ended editing Codeigniter.php
Line 1069 now reads
Code:
if (isset($_SESSION)) {
$_SESSION['_ci_previous_url'] = URI::createURIString(
$uri->getScheme(),
$uri->getAuthority(),
$uri->getPath(),
$uri->getQuery(),
$uri->getFragment()
);
}
Basically as its a string returned by URI::createURIString you don't really need the complex session handling stuff, not an optimum solution though.
Managed to get my brain in gear, replaced the CodeIgniter class with my own.