|
-
Dec 3rd, 2008, 03:00 AM
#1
Thread Starter
Addicted Member
cookie exists
is there a way to check if cookie exists?
-
Dec 3rd, 2008, 04:24 AM
#2
Re: cookie exists
if you need to check if a cookie exists you can just check if it is null as with any request parameter.
Code:
if(Request.Cookies["monster"] == null)
-
Dec 3rd, 2008, 05:05 PM
#3
Thread Starter
Addicted Member
Re: cookie exists
thanks for the code but im using visual basic language so this code doesnt work. i tried this:
If Request.Cookies("monster") = Null Then
but that doesnt work either because it says that "null" is not declared.
Last edited by vincey92; Dec 3rd, 2008 at 05:36 PM.
-
Dec 4th, 2008, 04:04 AM
#4
Re: cookie exists
I've not done vb for a while but I believe that it is nothing in vb.
eg.
Code:
If Request.Cookies("monster") Is Nothing Then
-
Dec 4th, 2008, 04:19 AM
#5
Thread Starter
Addicted Member
Re: cookie exists
it works!!! thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|