Welcome Guest, Not a member yet? Register   Sign In
How to redirect with context
#1

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
Trent
Reply
#2

(This post was last modified: 05-15-2020, 09:06 AM by InsiteFX.)

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 )
Reply
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB