PHP sessions / cookies are not saved correctly when using IE6 / IE7

We have a local intranet site that everyone uses on the network. Perhaps 5% (or even less) of users using the site have problems when the session is not saved properly.

I tried to determine the path manually ( C:/Coookieess) and check what was going on. While most user sessions are created and remain in order, on the affected machines it seems that he either forgets that there are cookies or cannot read them, and then continues to create a new cookie almost every time the page is refreshed.

It should be noted that ...

  • it affects only <5% of users
  • This only happens when using IE
  • this happens to these users no matter which machine uses them
  • this only happens with Windows XP or Vista - Windows 2000 works great!

I am also trying to use the security settings in IE by changing the security of cookies to allow all cookies / sessions, but fortunately no luck :(

Any help would be awesome. I am really stuck with this.

Thanks!

+3
source share
8 answers

It’s just a random idea and probably doesn’t matter, but it’s worth mentioning just in case - are the date and time correctly set on the computers you come across?

+3
source

, , P3P .

header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');

session_start();

+2

, : - ?

PHP, , -, , . , IE- -, , , ...

+1

cookie , , ...

- , , - cookie ?

HTTP (fiddler, nettool), .

0

, , , , , , cookie IE.

" " .

0

- , ? http://dev_server.example.net

DNS . FF/Safari , IE cookie,

, .

0

, , , - , IE.

, - , - , , , IE g-zip-.

- , , -

  • PHP, HTML

header ( "content-type: text/html; charset = utf-8" );

0
source

Could it be that 5% of users have user information that, when extracted from a cookie, violates the proper reading / decoding / parsing of the cookie?

0
source

Source: https://habr.com/ru/post/1712033/


All Articles