Avatar of garethtnash
garethtnash
Flag 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
VB ScriptASP

Avatar of undefined
Last Comment
Scott Fell

8/22/2022 - Mon
SOLUTION
Big Monty

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
garethtnash

ASKER
Hey Scott, can you provide that link again please.

Thank you
garethtnash

ASKER
Tank you
Scott Fell

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck