Jump to content

Cookies are net working in IE


jdm95lude

Recommended Posts

I have a form that gets sent to a script file that sets cookies then takes them to a second page that retrieves the cookies and they are able to enter in more information. Well the cookies are being set in Firefox I even go and view the cookies but they are not working in Internet Explorer 8. Any thought ideas suggestions?

This is how i'm setting my cookies.

$Name = $_POST['Name'];
setcookie("Name", "$Name", time()+3600);

How I call the cookies

$Name = $_POST['Name'];
<input type="text" name="Name" class="left_navbox_form_text_field" value="<?php echo "$Name";?>" />

 

 

SITE:

www.18002sellhomes.com

Link to comment
https://forums.phpfreaks.com/topic/135015-cookies-are-net-working-in-ie/
Share on other sites

So this is basically what I have. It doesn't work.

Page1.

 <form method="POST" action="test2.php">
<input name="Name"  type="text" value="<?php if (empty($_POST['Name'])) echo $_POST['Name'] ?>">
<input class="button" type="submit" value="Submit">

</form>	

Page2.

<?php
  		$Name = $_POST['Name'];
	setcookie("Name", "$Name", time()+3600);
	header("Location:test3.php");  
?>

Page3

<?php 
$Name = $_COOKIE['Name'];
echo "$Name";
?>

So I just ran a test on a different server using the same code. On Firefox it shows the cookies on the original server and the new server. In Internet explorer it doesnt show me the cookies when i go and look for them nor does it display them on the page. On the new server it displays them on the page but still doesn't not show the cookies in my Temporary files.

Any ideas at all? I'm totally lost

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.