Welcome Guest, Not a member yet? Register   Sign In
Session and subdomain issue
#6

[eluser]CodeMagician[/eluser]
Interesting, in that case...
Here's an idea:
detect the subdomain using similar method to above, set a Userdata or Session variable to define the "language". Language setting could be a DB table name, a filename, or maybe a /views/folder-name that holds all templates for that language.

Once it's all set, just redirect them to http://domain.com/ (the language settings will be saved in Userdata or Session. The main site should detect the language and proceed as normal.

* make sure the userdata is being saved across all subdomains, see config file setting. eg. ".domain.com" (remove first dot)

Sound good?


Messages In This Thread
Session and subdomain issue - by El Forum - 08-04-2010, 02:32 PM
Session and subdomain issue - by El Forum - 08-05-2010, 09:42 AM
Session and subdomain issue - by El Forum - 08-05-2010, 10:05 AM
Session and subdomain issue - by El Forum - 08-11-2010, 05:25 AM
Session and subdomain issue - by El Forum - 08-11-2010, 07:31 AM
Session and subdomain issue - by El Forum - 08-11-2010, 11:31 PM
Session and subdomain issue - by El Forum - 08-11-2010, 11:34 PM
Session and subdomain issue - by El Forum - 08-12-2010, 12:40 AM
Session and subdomain issue - by El Forum - 08-12-2010, 04:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB