[eluser]mighty_falcon[/eluser]
I am having an issue with flashdata. Up to now throughout my application when I have had the need to use flashdata I have first set it in my controller and then redirected to the next one and accessed it from there without any problems.
For this one page however I need to set the flashdata in the Cart controller like this:
Code:
$this->session->set_flashdata('redirect_url', site_url('cart'));
And then link to the login page in the view of the cart controller:
Code:
<a href="<?= site_url('auth/login')?>">login</a>
And then be able to access the flashdata in the login controller, which I am not able to. If I place a refresh in the cart controller right after setting the flashdata it works okay.
Is there a workaround to this problem? I need to link to the login controller but cannot refresh to be able to access the flashdata...
Thanks!