Link to home
Start Free TrialLog in
Avatar of garethtnash
garethtnashFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Vbscript check if Cookie exists

Hello,

I'm trying to show / hide elements based on  the existence of a cookie; I've tried using this -

<%if Not IsObject(Response.Cookies("user")) then %>
    <li><a href="#" rel="nofollow">Login</a></li>
    <li><a href="#" rel="nofollow">Register</a></li>
<%Else%>
    <li><a href="#" rel="nofollow">Account Settings</a></li>
<%End if%>

Open in new window


but no luck?

Any suggestions

Thank you
SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garethtnash

ASKER

Hey Scott, can you provide that link again please.

Thank you
Tank you