Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check status of privacy i.e. cookies disabled

Status
Not open for further replies.

tony4x4

Technical User
May 14, 2002
13
0
0
ZA
Hi,

Is there someway I can check the status of the flag cookies allowed or disallowed on a browsers machine?

Thanks

Tony
 
Visit this link, it goes into details.


Code:
Response.Expires=0

strCookie = Request.Cookies("COOKIE")
strTry = Request.QueryString("Try")

If IsNull(strCookie) OR ( Len(strCookie) = 0) Then

	' Check to see if this is a redirect after the cookie
	' has been set

	If IsNull(strTry) OR (Len(strTry) = 0) Then

		Response.Cookies("COOKIE") = "Set"

		' Redirect to this page and try again.
		Response.Redirect("cookie.asp?Try=Yes")
	Else

		'  User/Browser didn't accept cookies
		'  Do something...
		
		Response.Redirect("bad.asp")

	End If
End If
_______________________________
regards,
Brian
AOL IM: FreelanceGaines
AG00280_.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top