[PHP] BUG with session trans sid ?
I have tried to disable cookies and got strange behavior of PHP 4.0.6. So, I use php4.0.6 in default redhat installation. My code: ini_set('session.use_cookies', FALSE); ini_set('session.use_trans_sid', TRUE); ini_set('session.save_handler', 'user'); Then I set my own session handlers and start session. session_set_save_handler(FJ_S_open, FJ_S_close, FJ_S_read, FJ_S_write, FJ_S_destroy, FJ_S_gc); session_start(); TRANS SID feature doesnt working, but constant SID set correctly (PHPSESSID=...). If I write SID in links and forms manually, all works fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP Session register variable not always restored with contents
On Thu, 24 Oct 2002 21:26:30 +, John W. Holmes wrote: What is supposed to be in the session? Maybe these users are just denying cookies? Maybe... But my php compiled with --use-trans-sid and use this feature. In the session i store account, access timestamp etc... P.S. And 10% of traffic ~2000 visitors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Session register variable not always restored with contents
I have same troubles!!! I use php internet trade traffic system, and 10-20% of visitors lose their sessions data. Cut from logs: Remote address: ## Referer: http://mydomain.com/ URI: /out.php?id=1PHPSESSID=235a91cef853e750a6b67a70375e7d88 User-agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) Session ID: 616596c44d83c581a829658b63191d7c Session DATA: Remote address: ## Referer: http://mydomain.com/music.php?0 URI: /out.php?id=1link=freemusic User-agent: Mozilla/5.0 (Windows; U; Win98; de-DE; QXW0330l) Gecko/20011019 Netscape6/6.2 Session ID: b7a5708d134a08c370fb5778e099d0d0 Session DATA: Session DATA is EMPTY ! In 10-20% of visitors. I think this is a PHP bug, because most of visitors don't lose their session data. I used my script on 10 different servers (BSD,Linux) and PHP 4.0.6 - PHP 4.2.1. On Mon, 30 Sep 2002 17:34:27 +0300, Brad Hanson wrote: many times the value is presented. Sometimes it is a null string. Sometimes it takes a few refreshes before it will display anything other than blank. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php