Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfheader and cookies good idea????

Status
Not open for further replies.

jesse1

Programmer
Aug 29, 2008
30
0
0
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top