473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

OK I'm stumped. PHP and Firefox problem

Ken
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:"S teven";
--------------------------------------------------------

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:"S teven";WC_CompPrize|s:5:"3
:::4";WC_UserID|s:3:"s34";
WC_CompID|s:4:"SS01";WC_Answer|s:2:"a2";WC_HowMany Tickets|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:"S teven";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.

Aug 28 '05 #1
5 1256
Ken wrote:
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: [...] 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:"S teven";3:::4|N;s34|N;SS01|
N;a1|N;|N;WC_CompPrize|N
----------------------------------------------------------------------------


You seem to be very focussed on the serialized session data written to your
server instead of what is actually retrievable.

What happens when you print one of the values stored in $_SESSION?

Also, since your are using SSL, ensure that the session.cookie_secure
directive is enabled, e.g. with ini_set("session.cookie_secure", 1).
JW

Aug 28 '05 #2
Ken
Hi.

Not fixated no. I was just wondering why it should be that the
serialized session data is written when using any browser other
than FireFox? I can retrieve the data ok it just seems rather,
um.. odd, that this behaviour only occurs when the site is
accessed using FireFox.

Just one of those oddities that bugs me as to why it happens.

session.cookie_secure is set as well.
Ken.

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:43***********************@news.euronet.nl...
Ken wrote:
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: [...]
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:"S teven";3:::4|N;s34|N;SS01| N;a1|N;|N;WC_CompPrize|N


--------------------------------------------------------------------------

--


You seem to be very focussed on the serialized session data written to

your server instead of what is actually retrievable.

What happens when you print one of the values stored in $_SESSION?

Also, since your are using SSL, ensure that the session.cookie_secure
directive is enabled, e.g. with ini_set("session.cookie_secure", 1).
JW

Aug 28 '05 #3
On Sun, 28 Aug 2005 07:28:40 +0000, Ken wrote:
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:"S teven";
--------------------------------------------------------

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:"S teven";WC_CompPrize|s:5:"3
:::4";WC_UserID|s:3:"s34";
WC_CompID|s:4:"SS01";WC_Answer|s:2:"a2";WC_HowMany Tickets|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:"S teven";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.

different php.ini -> different include path -> old version of script?

Aug 28 '05 #4
Ken
> different php.ini -> different include path -> old version of script?


Same server, same php.ini, same include path, same script.
Ken.
Aug 28 '05 #5
*** Ken wrote/escribió (Sun, 28 Aug 2005 07:28:40 +0000 (UTC)):
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???


Install the LiveHTTPHeaders extension and find out what's exactly the
conversation between server and browser, including session ID.

--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Aug 29 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sharron | last post by:
This problem has me completely stumped...everyone on the net seems to have this problem but I don't understand what they are talking about. I know my code is correct it compiles fine but when I try...
6
by: Geoff | last post by:
When trying to focus a field in Firefox, I get the following error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame ::...
12
by: Howard Kaikow | last post by:
Yesterday, I decided to try Firefox. I've encountered a behavior that is either a bug in Firefox or a bug in my Javascript code. I'll try to explain the problem, hoping that this newsgroup can...
6
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
13
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available...
11
by: minnesotti | last post by:
Hi there, I subscribed to a photographic pictures-hosting website which is heavy on JavaScript. My preferred latest browser Mozilla Firefox does not work with it -- no pictures are displayed and...
3
by: xred11 | last post by:
Hi, Just switched to a new server, code work fine for 2 years, now on Win2003sp2, OK in IE6, Firefox, but ONLY 1 of 2 IE7's. One works, one doesn't. Fussed for a long time - boils down to this- ...
7
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.