Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.