• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic authentication system

#18
[eluser]Huji[/eluser]
I have another question in this same area: when we call redirect() can we be sure than the rest of the code is not executed? I mean, if we have code like this:

Code:
if( ! $this->session->userdata(‘logged_in’))
    {
      redirect(’/login/’);
    }

// OTHERWISE DELETE A WIPE OUT THE DATABASE
...

Can we be sure that the wipe out section is only run when authentication is confirmed?


Messages In This Thread
Basic authentication system - by El Forum - 06-09-2009, 01:17 PM
Basic authentication system - by El Forum - 06-09-2009, 01:33 PM
Basic authentication system - by El Forum - 06-09-2009, 01:34 PM
Basic authentication system - by El Forum - 06-10-2009, 06:40 AM
Basic authentication system - by El Forum - 06-10-2009, 08:07 AM
Basic authentication system - by El Forum - 06-10-2009, 08:11 AM
Basic authentication system - by El Forum - 06-10-2009, 08:14 AM
Basic authentication system - by El Forum - 06-10-2009, 01:01 PM
Basic authentication system - by El Forum - 06-10-2009, 01:28 PM
Basic authentication system - by El Forum - 06-10-2009, 01:35 PM
Basic authentication system - by El Forum - 06-10-2009, 01:45 PM
Basic authentication system - by El Forum - 06-10-2009, 01:49 PM
Basic authentication system - by El Forum - 06-10-2009, 01:51 PM
Basic authentication system - by El Forum - 06-10-2009, 02:42 PM
Basic authentication system - by El Forum - 06-11-2009, 01:14 PM
Basic authentication system - by El Forum - 06-11-2009, 02:47 PM
Basic authentication system - by El Forum - 06-12-2009, 02:49 AM
Basic authentication system - by El Forum - 06-14-2009, 06:37 AM
Basic authentication system - by El Forum - 06-14-2009, 10:51 AM
Basic authentication system - by El Forum - 06-14-2009, 01:45 PM
Basic authentication system - by El Forum - 06-14-2009, 03:35 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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