an0x Posted May 22, 2008 Share Posted May 22, 2008 hi,i have a problem. i have 2 hosts: (myown host)host B --> page a.php (other host)host A --> page b.php. i want session id page on host A. but i just access host B. i used this on a.php page on host A: < ifr ame sRc ="htt p://www.hostB.com" width="100%"> < /iframe> it shows myown b.php page included a.php ,on host A. i want get session id of a.page on host A. i want code like session_id("www.hostB.com/b.php"); how can i get session ID of another website? here is more explain: http://i29.tinypic.com/aw9dky.jpg i just wanna know that how can i get session id in OTHERS website,not mine . i want just with this steps get session id of a website: step 1 : include my page in other web page (that i need session id of this) step 2 : using a function or something in my page like session_id("www.other web page.com"); to find session id of other web page. i want a function using in my page to find session id of other web page. with just including my page in other web can we get session ID of other web? regards -- an0x ??? ??? ??? ??? :o :o Link to comment https://forums.phpfreaks.com/topic/106781-session-id/ Share on other sites More sharing options...
rhodesa Posted May 22, 2008 Share Posted May 22, 2008 If you are at the webpage of one host, you will not be allowed access to other hosts information. It is a major security violation to allow otherwise. Link to comment https://forums.phpfreaks.com/topic/106781-session-id/#findComment-547373 Share on other sites More sharing options...
Xurion Posted May 22, 2008 Share Posted May 22, 2008 There shouldn't be a problem in the way you have it set up now. For example: if I log into an account on a website, it is the website that the session id is relevant to. If you include the same web page in an iframe, the page in that frame is still hosted on the same host, and therefore there should be no problem. Link to comment https://forums.phpfreaks.com/topic/106781-session-id/#findComment-547379 Share on other sites More sharing options...
rhodesa Posted May 22, 2008 Share Posted May 22, 2008 Not if the page inside the iframe is on a different host (like they are asking). The session inside the iframe will be it's own independent entity. Another question: What are you trying to accomplish? Link to comment https://forums.phpfreaks.com/topic/106781-session-id/#findComment-547381 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.