Originally posted by jakem
Sessions include the starting window and any windows spawned from that. If you have a javascript that opens a new window, the session would include that window. It would not include a new window that the user opens on their own.
that isn't entirely correct.
if you use cookies to store your session ID, then it will include any and all windows you open from the browser the session was started with. If you launch Mozilla, login to a site and a session is created. all mozilla windows whether opened on your own or through javascript, etc will be able to take you back to your session because the cookie is not window dependent.
If you pass the SID in the url then as long as each new window has the SID passed to the page, you should be ok.
if the user opens a new window on their own, then most likely the SID is not included there and that window will not access the session.
as for framesets, same thing. If you use cookies, no problem, pages in the frameset can access the cookie just the same. If you don't use cookids, then your frame tag has to include the SID in the src attribute. (src="pagename.php?PHPSESSID=" )