CodeIgniter Forums
Landing page with site warning - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Landing page with site warning (/showthread.php?tid=36937)



Landing page with site warning - El Forum - 12-20-2010

[eluser]Unknown[/eluser]
Hi every. can anyone help me with restricting access unless the user has accepted the terms (checkbox)that is persistent idealy wherer and wot authentication system sould i user?


Landing page with site warning - El Forum - 12-20-2010

[eluser]TaylorOtwell[/eluser]
You will probably need to manage that functionality yourself. Although, wouldn't you really just want to make sure the user has a valid account? Presumably, if they have a valid account, they accepted the terms of service.


Landing page with site warning - El Forum - 12-22-2010

[eluser]Unknown[/eluser]
I thought about that and that would require everyone to register before they can browse the site.
im thinking if(!this->is_terms_accepted) do this else if (!$this->is_logged_in)


Landing page with site warning - El Forum - 12-22-2010

[eluser]bl00dshooter[/eluser]
I believe no authentication system will do this, because it's not authentication at all.

I suggest studying sessions with codeigniter to start.