PDA

View Full Version : Session ID set on href


RobK
10-24-2007, 08:54 PM
Hi
I am building a multi-language site for a client using PHP and MySQL.
I plan on having a index page with flags, each flag will have a simple link href link to the main site, but the bit I cannot suss out is how to set a session id from the href link so the site uses the correct language, the session id can be somthing like En ES or DE.

Can anyone tell me how to do this?

Thanks in advance.

rafiki
10-24-2007, 11:42 PM
you cannot change a session id to EN/ES/DE you can use them as $_GET variables or store them in a session variable

Inigoesdr
10-25-2007, 12:48 AM
Pass the language via $_GET and then set it as a session variable.