Same iframe cookies

I have an image downloader (http://valums.com/ajax-upload/) that uses an iframe as a reserve for processing. My website uses cookies to store user information. Will a cookie with user information be transmitted to the iframe (I need to know the user ID when processing images). Iframed pages are in the same domain as the cookie.

+5
source share
2 answers

Yes, if the iframe source is the same domain as your parent page, then any request coming from the iframe should send the same cookies.

, Javascript, iframe, .

+6

cookie :

set-cookie: some-key=some-value; path=/;

- :

set-cookie: some-key=some-value; path=/;
set-cookie: some-key=; path=/ajax-upload/;

0

All Articles