Welcome Guest, Not a member yet? Register   Sign In
Session best practice question
#3

[eluser]maadmac[/eluser]
[quote author="Rick Jolly" date="1193438518"]I'd put that in the controller constructors instead of in the view. To avoid repetition, you could create an application/base controller with that code in its constructor and extend it for all pages that require a login.[/quote]

Hi Rick,

That makes sense, thanks. And sorry if this is a noob question, but would you mind clarifying what you mean by creating and extending a base controller?

Thanks!


Messages In This Thread
Session best practice question - by El Forum - 10-26-2007, 10:24 AM
Session best practice question - by El Forum - 10-26-2007, 11:41 AM
Session best practice question - by El Forum - 10-26-2007, 12:33 PM
Session best practice question - by El Forum - 10-26-2007, 12:46 PM
Session best practice question - by El Forum - 10-26-2007, 01:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB