thalakola Posted December 27, 2006 Share Posted December 27, 2006 We have a php page that validates the login credentials of the user. For some reason, when we enter the login and password in the internet explorer, the login fails and the same login page is displayed with the login and password fields cleared.However, when we access the same page through Mozilla firefox, the login works and we move on to the another page.In both browsers the login is through secure http,(https)Here is the login.php code-------------------------[code] <span class="vspace"> </span> <table class="table2nd" cellspacing="0"> <tr> <td class="table2ndHead"> <span class="table2ndHeadCopy"> <?php echo $TITLE; ?> </span> </td> </tr> <tr> <td class="table2ndBody"><?php if (!$_SERVER['HTTPS']){ include($_SERVER['DOCUMENT_ROOT']."/includes/https_error.php"); } else if ($_SESSION['brokerID'] || $_SESSION['employeeID'] || $_SESSION['trial']){ echo ' <span class="vspace"> </span> <span class="table2ndBodyHeader"> Thank you for signing on to WLOconnect</span> <span class="table2ndBodyCopy">Your Account gives you access to the following services:</span> '; // Print links depending on login session type if ($_SESSION['brokerID']){ echo' <p> <img src="/images/buttons/linkArrow.gif" width="20px" height="20px" border="0" class="linkpic"> <a href="/site/ratesheets/" class="table2ndBodyCopyLink">View Ratesheets</a> </p> <p> <img src="/images/buttons/linkArrow.gif" width="20px" height="20px" border="0" class="linkpic"> <a href="/site/guidelines" class="table2ndBodyCopyLink">View Product Guidelines</a> </p> <p> <img src="/images/buttons/linkArrow.gif" width="20px" height="20px" border="0" class="linkpic"> <a href="/site/submit_loans" class="table2ndBodyCopyLink">Submit Loans</a> </p> <p> <img src="/images/buttons/linkArrow.gif" width="20px" height="20px" border="0" class="linkpic"> <a href="/site/view_loans" class="table2ndBodyCopyLink">View Loans</a> </p> <br> '; } else if ($_SESSION['employeeID']){ } else if ($_SESSION['trial']){ } }// else if(!isset($_COOKIE['cookTest'])){ else if(5==4){ echo ' <span class="vspace"> </span> <span class="table2ndBodyCopyError">We\'re Sorry!</span> <span class="table2ndBodyCopyError">Cookies must be enabled in your browser to sign in to WLOconnect!</span> <span class="table2ndBodyHeader">Why must I enable cookies?</span> <span class="table2ndBodyCopy"> A cookie is a small file that is saved to a temporary folder on your computer. The WLOconnect website uses cookies to <b>securely</b> keep track of your login session. Other methods of tracking user login sessions are not as secure. </span> <span class="table2ndBodyHeader">How Do I enable cookies?</span> <span class="table2ndBodyCopy"> Internet Explorer: </span> <ul class="uList"> <li class="list">Choose <b>Tools</b> from the menu bar at the top of the screen. <li class="list">Select <b>Internet Options</b> from the drop-down menu. <li class="list">A new window will open title <b>Internet Options</b>. <li class="list">Click on the <b>Privacy</b> tab a the top of the new window. <li class="list">Move the slider down and select a privacy setting other than <b>Block All Cookies</b>. <li class="list">Click <b>Ok</b>. </ul> <span class="vspace"> </span> <span class="table2ndBodyCopy"> Netscape/Mozilla Browsers: </span> <ul class="uList"> <li class="list">Choose <b>Edit</b> from the menu bar at the top of the screen. <li class="list">Select <b>Preferences</b> from the drop-down menu. <li class="list">A new window will open title <b>Preferences</b>. <li class="list">Click on the <b>Privacy & Security</b> link located in the navgation tree on the left side of the window. <li class="list">A new list of privacy & security links will appear. Choose the <b>Cookies</b> link. <li class="list">The right side of the screen will now show cookie settings. <li class="list">Choose any cookie setting other than <b>Disable Cookies</b>. <li class="list">Click <b>Ok</b>. </ul> <span class="vspace"> </span> <span class="table2ndBodyCopy"> Once you have enabled cookies in your browser, click <a href="/" class="table2ndBodyCopyLink">here</a> and then click the <b>Broker Sign In</b> link after the new page has loaded. </span> <span class="vspace"> </span> '; } else {?> <br> <Table> <FORM ACTION="<?php $PHP_SELF ?>" METHOD=POST> <INPUT type="hidden" name="ckT" value="1"><?php // Print Error Msg if Login is incorrect if ($ERROR['LOGIN']){ echo ' <tr> <td colspan="2"> <span class="table2ndBodyCopyError"> '.$ERROR['LOGIN'].' </span> <td> </tr> '; }?> <tr> <td align="right"> <span class="tablePipeCopy"><b>USER ID:</b></span> </td> <td> <INPUT TYPE=TEXT NAME="two" SIZE=30 MAXLENGTH=40 VALUE="<?php echo $_COOKIE['wloUser']; ?>"> </td> </tr> <tr> <td align="right"> <span class="tablePipeCopy"><b>Password:</b><span> </td> <td> <INPUT TYPE=PASSWORD NAME="one" SIZE=15 MAXLENGTH=15> </td> </tr> <tr> <td colspan="2"> <span class="tablePipeCopy"> Remember My USER ID (Expires in 30 days) Yes<INPUT TYPE="radio" NAME="saveUserID" VALUE="1" > No<INPUT TYPE="radio" NAME="saveUserID" VALUE="0" checked> <span> </td> </tr> <tr> <td colspan="2"> <span class="tablePipeCopy"><b> </b></span> </td> </tr> <tr> <td colspan="2" align="left"> <INPUT TYPE=SUBMIT NAME="submit" VALUE="CONNECT"> </td> </tr> </FORM> </Table> <br> <span class="table2ndBodyCopy"> Don't have a login? <a class="table2ndBodyCopyLink" href="/site/trial_account">Click here for a trial account</a> </span> <br> <span class="table2ndbodyFooter"> * The login portion of the WLOconnect website makes use of cookies for session management. No personal information is gathered or sold to third parties. WLOconnect stores a cookie containing the USER ID on the user's computer for a period of 30 days if the <b>Remember My USER ID</b> option is selected. </span><?php }?> </td> </tr> </table>[/code]---------------------------------------------------------------------- Link to comment https://forums.phpfreaks.com/topic/31940-login-issue-with-intenet-explorer-only/ Share on other sites More sharing options...
trq Posted December 27, 2006 Share Posted December 27, 2006 I dont see any call to session_start(). Link to comment https://forums.phpfreaks.com/topic/31940-login-issue-with-intenet-explorer-only/#findComment-148228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.