troubleshooting Question

$_SESSION lost?

Avatar of pillmill
pillmill asked on
Web BrowsersWeb Development SoftwareWeb Servers
3 Comments1 Solution336 ViewsLast Modified:
Is the session value being lost in the following:

if(!empty($_SESSION['name'])) echo ($_SESSION['name']);

<iframe src="child.php"/>



 if(!empty($_FILES)) {$_SESSION['name'] =$_FILES['file']['name']  ;

<form action="child.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<input type="submit" name="submit" value="Submit" />


Can the $_SESSION value be retrieved by the parent?
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros