Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setting cookies in mhtml files

4 views
Skip to first unread message

roeeoz

unread,
May 29, 2007, 1:31:54 AM5/29/07
to
Hello All.

It seems that you can't set cookies in an mhtml (.mht, message/rfc822) page. I have an MHTML page which uses javascript document.cookie to set a cookie, and then test for it, and it's just not there.

Some more details: I'm doing dynamic content protection using RMH (rights managed html - RMS for internet explorer). In order to do so I need to convert the HTML page returned from the server to MHTML format.

I've tried it on "Outlook Web Access" (OWA) site, and I got a "Cookies are disable" page instead of the login page.

I looked in the page source and found out it tests for cookies using document.cookie. I also test it with my own page with the same results. Another way to see is just to save OWA login page as MHT (MHTML) from IE, and then open it. You'll get the same "Cookies are disabled" page.

Any idea how to enable cookies on MHTML pages?
Any idea how to protect sites which uses cookies inside RMH without breaking them?

0 new messages