session id

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anox
Forum Newbie
Posts: 2
Joined: Sat May 10, 2008 1:05 pm

session id

Post by anox »

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:
<iframe
sRc ="http://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?
:banghead: :drunk: 8O
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: session id

Post by Maugrim_The_Reaper »

I suggest dropping that idea completely, and coming up with another solution. Exposing a session id to anyone other than the user via a simple request as you seem to want is a pretty serious security risk. Look up google for session hijacking.
anox
Forum Newbie
Posts: 2
Joined: Sat May 10, 2008 1:05 pm

Re: session id

Post by anox »

Maugrim_The_Reaper wrote:I suggest dropping that idea completely, and coming up with another solution. Exposing a session id to anyone other than the user via a simple request as you seem to want is a pretty serious security risk. Look up google for session hijacking.
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:

Image

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
anoxibility@yahoo.com
Post Reply