We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

check if the cookie has comma

lulu50
lulu50 asked
on
Medium Priority
365 Views
Last Modified: 2012-05-11
Hi,
I have created a cookie with value 10.254.124.523,22
  <cfcookie name="User" value="10.254.124.523,22" expires="30">  
How can I say if the cookie value has comma then do something else don't do anything

<cfif cookie.User eq "the value has comma">
do something
<cfelse>
don't do anything
</cfif>
Comment
Watch Question

CERTIFIED EXPERT

Commented:
<cfif cookie.User contains ",">
  do something
<cfelse>
  don't do anything
</cfif>
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
lulu50Web application

Author

Commented:
GOOD JOB!!!!!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.