Welcome Guest, Not a member yet? Register   Sign In
Code Organization
#8

[eluser]phused[/eluser]
[quote author="m40" date="1250084034"]Thanks! This makes perfect sense.

One more question if I may. Consider a case where remember me cookies need to be used. Let's say each of these cookies stores a username and a matching token / random number. I would guess this would require adding a few lines to _ensure_authenticated_user so that if no login_name session is found the function will look for a remember me cookie and if it find one, it will validate it against a database. While I think a design like that would work, I wonder if it would be considered a good design.[/quote]

Yeah, that's correct and how most people do it.


Messages In This Thread
Code Organization - by El Forum - 08-11-2009, 11:51 AM
Code Organization - by El Forum - 08-11-2009, 12:01 PM
Code Organization - by El Forum - 08-11-2009, 05:38 PM
Code Organization - by El Forum - 08-11-2009, 05:47 PM
Code Organization - by El Forum - 08-11-2009, 06:00 PM
Code Organization - by El Forum - 08-11-2009, 06:41 PM
Code Organization - by El Forum - 08-12-2009, 02:33 AM
Code Organization - by El Forum - 08-12-2009, 05:00 AM
Code Organization - by El Forum - 08-12-2009, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB