For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > August 2005 > OK I admit it. I'm stumped.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OK I admit it. I'm stumped.
news.btinternet.com

2005-08-26, 6:56 pm

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 script 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 guys???


Ken.


Stefan Rybacki

2005-08-26, 6:56 pm

news.btinternet.com wrote:
> 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 script 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 guys???
>


Hum, check whether the the session id is sent properly. Check also cookie settings in both
browsers. Maybe the session id is passed by cookies and firefox has disabled cookies?
Just ideas, no real clue since I don't know your system. ;)

Stefan

>
> Ken.
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com