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

}

?>

 

?>

Link to comment
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.