Reply to OK I'm stumped. PHP and Firefox problem

Your name:

Reply:


Posted by Ken on 08/28/05 10:28

Hi all.

I had no joy with this in alt.comp.lang.php so thought I would try here
instead.

Hopefully someone will make sense of this for me.

Using:
PHP 4.3.10 (cgi) (built: Dec 21 2004 09:18:25)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Server version: Apache/2.0.52
Server built: May 9 2005 18:13:36

Linux 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686 i686 i386
GNU/Linux
--------------------------------------------------------------------------

I have a few php scripts running, on login, the session is written correctly
ie:
--------------------------------------------------------
VCID|s:3:"s34";firstname|s:3:"Ken";lastname|s:6:"Steven";
--------------------------------------------------------

going from page to page it is still fine. Using IE when I transfer to my
HTTPS scripts, the session data is written fine ie:

----------------------------------------------------------------------------
VCID|s:3:"s34";firstname|s:3:"Ken";lastname|s:6:"Steven";WC_CompPrize|s:5:"3
:::4";WC_UserID|s:3:"s34";
WC_CompID|s:4:"SS01";WC_Answer|s:2:"a2";WC_HowManyTickets|s:2:"20";WC_Freebi
es|d:10;
WC_TotalTickets|d:30;WC_TotalCost|i:60;
----------------------------------------------------------------------------

BUT, following the exact same route through the site, if I am using FIREFOX
this is what I get:

----------------------------------------------------------------------------
VCID|s:3:"s34";firstname|s:3:"Ken";lastname|s:6:"Steven";3:::4|N;s34|N;SS01|
N;a1|N;|N;WC_CompPrize|N
----------------------------------------------------------------------------

Note that all of the WC_nnnnnnn prefixes are ommited. No matter what I do I
just cannot get the correct session data written to the session file but
ONLY if I use
FireFox. Why the hell should that be???

$_SESSION['WC_CompPrize'] = $compPrize;
$_SESSION['WC_UserID'] = $VCID;
$_SESSION['WC_CompID'] = $compID;
$_SESSION['WC_Answer'] = $q_answer;
$_SESSION['WC_HowManyTickets'] = $howmany;
$_SESSION['WC_Freebies'] = $half;
$_SESSION['WC_TotalTickets'] = $TotalTickets;
$_SESSION['WC_TotalCost'] = $total;

Works for every other browser, in desperation I even tried:

session_register($WC_compPrize);
session_register($VCID);
session_register($compID);
session_register($q_answer);
session_register($howmany);
session_register($half);
session_register($TotalTickets);
session_register($total);


But I am just getting nowhere. Any ideas people???


Ken.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация