cody7 Posted March 19, 2006 Share Posted March 19, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/5313-session-problem/ Share on other sites More sharing options...
hitman6003 Posted March 19, 2006 Share Posted March 19, 2006 Does he have cookies enabled for IE? Quote Link to comment https://forums.phpfreaks.com/topic/5313-session-problem/#findComment-18885 Share on other sites More sharing options...
cody7 Posted March 19, 2006 Author Share Posted March 19, 2006 [!--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? Quote Link to comment https://forums.phpfreaks.com/topic/5313-session-problem/#findComment-18891 Share on other sites More sharing options...
cody7 Posted March 19, 2006 Author Share Posted March 19, 2006 can anyone give an input about this matter. thankyou for any help you can give me. Quote Link to comment https://forums.phpfreaks.com/topic/5313-session-problem/#findComment-18905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.