Jump to content

Internet explorer problem


hvandracas

Recommended Posts

Well, my page contains a URL like file.php?userid=1&pass=passwordhashblablabla.

 

I try to open the page on opera, mozilla, safari, google chrome and so browsers and it works fine. I get the message that id/pw match and user has logged in successfully.

 

However, when I go to THE SAME url on IE, i get message that id/pw do not match.

 

URL is still the same, history is cleaned...

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/227061-internet-explorer-problem/
Share on other sites

Well, it's just a bookmark page for mobiles.

 

The code:

 

session.php (included);

 

<?php

ini_set('session.use_cookies', 0);

ini_set('session.use_only_cookies', 0);

ini_set('session.name', 'sid');

ini_set('session.auto_start', 0);

ini_set('session.use_trans_sid', 1);

session_start();

?>

 

 

The file, that checks variables in url

<?php

if (isset($_GET['userid'])) {

$userid = preg_replace("[^0-9]", "", $_GET['userid']);

} else {

$userid = '0';

}

if (isset($_GET['pass'])) {

$password = mysqli_real_escape_string($db, $_GET['pass']);

} else {

$password = '0';

}

 

if (!mysqli_num_rows(mysqli_query($db, "SELECT vartotojo_vardas FROM vartotojai WHERE userid = '$userid' AND slaptazodis = '$password'"))) {

 

              // id and password do not match

}

?>

 

?>

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.