Monday, December 17, 2007

How to detect the web browser that can support Cookies

How to detect the web browser that can support Cookies

- We can try to send a Cookies to the web browser.

- If the browser cannot support the Cookies, we will also need to avoid the system from displaying the Error message.

<%

On Error Resume Next

If IsEmpty(Session("Testing")) Then

Response.write("No support Cookies")

Else

Response.write("Support Cookies")

End If

%>

No comments: