Welcome Guest, Not a member yet? Register   Sign In
Search engines indexation
#3

[eluser]Rick Jolly[/eluser]
First, I wouldn't rely on javascript for cookies/redirects when you could use php. I'd make the home page the default page. Then I'd abstract the cookie/session stuff into a plugin or helper and call that in all controllers. The logic could be something like the following:

If the session lang is set then return.
Else, try to get the lang cookie.
If the lang cookie is set, then set the session lang from it and return.
Else, select a lang for the user then set the cookie and the session lang and return.


Messages In This Thread
Search engines indexation - by El Forum - 07-10-2007, 01:30 PM
Search engines indexation - by El Forum - 07-10-2007, 01:54 PM
Search engines indexation - by El Forum - 07-10-2007, 02:31 PM
Search engines indexation - by El Forum - 07-10-2007, 04:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB