Jump to content

session problem


cody7

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



Link to comment
https://forums.phpfreaks.com/topic/5313-session-problem/
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?
Link to comment
https://forums.phpfreaks.com/topic/5313-session-problem/#findComment-18891
Share on other sites

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.