I have a site in spanish and english. I have the user click the Spanish if they want the Spanish version.
I use the following code to set a cookie:
<cfheader
name="Set-Cookie"
value="lang=#url.l# ; expires=NEVER">
I use cfif tags on all the pages to show the spanish version:
<cfif isdefined('cookie.lang') and cookie.lang eq 2>
Is this a good idea or should i stay away from cookies? If so what other options do i have.
I use the following code to set a cookie:
<cfheader
name="Set-Cookie"
value="lang=#url.l# ; expires=NEVER">
I use cfif tags on all the pages to show the spanish version:
<cfif isdefined('cookie.lang') and cookie.lang eq 2>
Is this a good idea or should i stay away from cookies? If so what other options do i have.