Jump to content


Photo

session problem


  • Please log in to reply
3 replies to this topic

#1 cody7

cody7
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 19 March 2006 - 08:48 PM

Hi guys, heres my problem

<?
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>

then in sample2.php

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


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





#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 19 March 2006 - 08:53 PM

Does he have cookies enabled for IE?

#3 cody7

cody7
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 19 March 2006 - 09:16 PM

[!--quoteo(post=356496:date=Mar 19 2006, 03:53 PM:name=hitman6003)--][div class=\'quotetop\']QUOTE(hitman6003 @ Mar 19 2006, 03:53 PM) View Post[/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?

#4 cody7

cody7
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 19 March 2006 - 10:55 PM

can anyone give an input about this matter.

thankyou for any help you can give me.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users