• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to redirect with context

Hi Guys,

I have a requirement to go directly to a 'post' in my website members section from a link in an email. At the moment, if the user is logged on, all is good, but if they're not they are re-directed to the home page and the context in the URL is lost.

I have changed the code to redirect to the logon page but the context is still lost. Is there a way to pass data with the redirect or should I be calling the view and pass the data in there? Also, I don't think I can use cookies as there is also links coming from SMS messages.

Any help would be much appreciated.

Kind Regards

How about saving it in a session variable, or a flash data.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Yep, that was it! Thanks for the advice, worked treat :-D

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.