You are running into the new privacy policy restrictions added to IE. IE now
looks for a privacy policy in the P3P format (XML) to determine whether to
allow cookies, etc. from a web site. What is allowed is also determined by the
user's privacy settings.

You can add your privacy policy in the P3P format. IBM has a free download of a
P3P generator. With it you specify what kind of information your site collects
and how it will be used. Setting this up should solve your problem.

-----Original Message-----
From:   Matthias Carlsson [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, April 09, 2002 3:00 PM
To:     [EMAIL PROTECTED]
Subject:        Internet Explorer & Cookies -> Blocked

Hi,

I'm currently developing a small shopping site with Servlets and JSPs
and I'm having some trouble storing info in a user's cookie when s/he is
using Internet Exporer. Everything works great when I try with Opera (my
primary browser).

I have a Java class called 'ShoppingCart' which contains misc. info
about what the user has in her shopping cart. I store this object in the
user's "session" like this.

// cart is an instance of the ShoppingCart class
request.getSession().setAttribute("cart", cart);

Similary, I also have class called 'User' which contains info about the
user if s/he is logged in. It is stored like this (when the user loggs
in):

// user is an instance of the User class
request.getSession().setAttribute("user", user);

Which makes it easy for me to check whether the user is logged in or
not; just check if the session attribute "user" is null or not.

The above works as I said earlier great when I use Opera, however, when
I try with Internet Explorer 6.0 (not sure with previous versions) my
cookie gets blocked by the browser with the following message
(translated by me to English, may not be correctly worded):

"No secrecy policy was fround for <url>. Contact the web site directly
if you want to see the site's secrecy policy".

I have never run into something like the before. Any help I can get will
be appreciated. I'm running the latest stable release of Resin.

Thanks,

[ Matthias Carlsson ]
[ KTH: D-01 ] [ Programmer (Java) ] [ Web Designer ]
[ [EMAIL PROTECTED] ] [ Mob#: 073-9287309 ] [ ICQ: 1430647 ]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to