How do I check to see if a cookie exists or not?
I tried these 3 but they don't work...
If Not Request.Cookies ("UserSettings" )("IsAdmin") Is Nothing Then...
If Request.Cookies ("UserSettings" )("IsAdmin") IsNot Nothing Then...
If Not IsNothing(Reque st.Cookies("Use rSettings")("Is Admin")) Then...
They all give me a System.NullRefe renceException.
Thanks!
I tried these 3 but they don't work...
If Not Request.Cookies ("UserSettings" )("IsAdmin") Is Nothing Then...
If Request.Cookies ("UserSettings" )("IsAdmin") IsNot Nothing Then...
If Not IsNothing(Reque st.Cookies("Use rSettings")("Is Admin")) Then...
They all give me a System.NullRefe renceException.
Thanks!
Comment