Jump to content

Archived

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

cody7

session problem

Recommended Posts

Hi guys, heres my problem

[code]
<?
if($_POST['submit']){
    $_SESSION['sample_session'] = $_POST['name'];
    redirect("sample2.php");
}
?>


<form action="" method="post">
<input type="text" value="" name="name">
<input type="submit" value="Submit" name="submit">
</form>
[/code]

then in sample2.php

[code]
<?
if($_SESSION['sample_session'] == ""){ // i do not use isset() for this example
    echo "ERROR<br>";
}else{
    echo "Your input = ".$_SESSION['sample_session']."<br>";
}
?>

[/code]

both my page has session_start() on top.

heres the issue, when i tried this code (for IE, firefox) its working fine, but when i ask my friend (his in another location) to try it both for IE and firefox heres the result. its working in firefox but NOT in IE.

we have the same setting for the both browsers.

what could be the cause of this? any suggestion or inputs that you can give me?

thanks



Share this post


Link to post
Share on other sites
[!--quoteo(post=356496:date=Mar 19 2006, 03:53 PM:name=hitman6003)--][div class=\'quotetop\']QUOTE(hitman6003 @ Mar 19 2006, 03:53 PM) [snapback]356496[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Does he have cookies enabled for IE?
[/quote]

where can i find that setting?

is it in the Internet Option then Privacy and the privacy setting?

i ask him to set it to Accept All Cookies but it still not working.

does the certiticate of the site has to do with this?

Share this post


Link to post
Share on other sites
can anyone give an input about this matter.

thankyou for any help you can give me.

Share this post


Link to post
Share on other sites

×

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.