Jump to content

how do i manage sessions on iframe


Recommended Posts

hiya,

 

well i m trying to insert an iframe in admin section may i know how do i manage sessions on to that, because iframe can be accessed directly using the direct URL, so how do i manage it in the way that when sessions doesnt exist, then the iframe is not loaded, just like a check if(!$_SESSION) then exit();

 

 

thanks and regards

 

Link to comment
Share on other sites

Maybe I am just confused, but that question seemed to make almost no sense at all. Don't Iframes inherit their parent's sessions? Anyways, sessions aren't a client-side thing, they are server-side -- it doesnt matter if the user goes to "admin.php" which has an iframe pointing to "frame.php", it would be exactly like a user going to "frame.php".

Link to comment
Share on other sites

×
×
  • Create New...