Welcome Guest, Not a member yet? Register   Sign In
[Solved] Setting up a user redirect
#7

[eluser]Tim Brownlaw[/eluser]
Well you made it "Work" without really understanding why!

Both CroNiX and InsiteFX know you got it "Working" but make some really good suggestions you shouldn't just ignore!

I was about to go into a more detailed explanation of how "if" works and how PHP allows for potential disasters as has been explained above!

Things like...
Code:
if ($this->CI->session->userdata('user_id')) {
should make you shiver in horror! ( See CroNiX's take on it )
Does that definitely return a TRUE or a FALSE?????

Please don't go replying that you had already fixed it, without acknowledging what has been suggested. If you need more explanation, please ask!


Messages In This Thread
[Solved] Setting up a user redirect - by El Forum - 08-29-2014, 08:13 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 12:57 AM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 09:28 AM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 04:00 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 07:32 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 07:32 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 11:30 PM
[Solved] Setting up a user redirect - by El Forum - 08-31-2014, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB