We recently upgraded to php4.1.0 from 4.0.6 and now our custom session
handling doesn't work!  We are running on linux with apache, attempting to
save session info to a MySQL database (I have session.save_handler=user).
There are a couple issues:

1) Occassionally (can't seem to pin down exactly when) I try and access my
site and get a "The page cannot be displayed" error in IE.
    a. The session_start() command seems to be causing this error - If i put
die("here"); before session_start(), I see the message. If I move
die("here"); after session_start(), I get the error.
    b. Clicking refresh (sometimes 1 time, sometimes 10 times) will
eventually allow me to access my page.

2) The first time I access my page, I attempt to set a session variable
($_SESSION["foo"] = "bar;). When the page finishes loading, the session
write handler is called which puts the session information in the database.
However, there is nothing written to the value field! (It's still blank!)
    a. If I refresh the page, the session information is updated in the
database, and now the value field has the correct entry (foo|s:3:"bar";)

My session save handler is based on <a
href="http://www.onlamp.com/pub/a/php/2001/05/10/sessions.html?page=2";>this
article</a> I read:
I'm attaching a copy of my sesssions.php file in case that will help anyone.
The only modifications I made were to the read handler - I put in a return
of the value from the SELECT.  If I take that statement out, problem 1) goes
away, but I would NEVER get session information saved into the database!??!
(only the SessionID would be stored)

Did something change in session handling from 4.0.6 to 4.1.0? If I can't
figure this out, we have no choice but to roll back to 4.0.6, but I really
love the security additions of 4.1.0 - Help!!! MUCH THANKS IN ADVANCE.

John


begin 666 sessions.php.txt
M/#]P:' -"@T*+RH-"BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BH-"BHJ#0HJ*@E.86UE.B!T96UP;&%T92YP:' -"BHJ#0HJ*@E!
M=71H;W(Z($-O<GD@1F%C=&]R#0HJ*@T**BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*@T**B\-"@T*+R\@5&AE<V4@=F%R:6%B;&5S
M(&%R92!S970@:6X@=&AE(&1A=&%B87-E7W-E='1I;F=S+G!H<"!F:6QE#0HO
M+R!W:&EC:"!I<R!I;F-L=61E9"!U<VEN9R!T:&4@875T;U]P<F5P96YD7V9I
M;&4@4$A0(&-O;F9I9W5R871I;VX-"B\O#0HD4T534U]$0DA/4U0@/2 D1VQO
M8F%L7T1"2$]35#L)"2\J(&1A=&%B87-E('-E<G9E<B!H;W-T;F%M92 J+PT*
M)%-%4U-?1$).04U%(#T@)$=L;V)A;%]$0DY!344["0DO*B!D871A8F%S92!N
M86UE("HO#0HD4T534U]$0E5315(@/2 D1VQO8F%L7T1"55-%4CL)"2\J(&1A
M=&%B87-E('5S97(@*B\-"B1315-37T1"4$%34R ]("1';&]B86Q?1$)005-3
M.PD)+RH@9&%T86)A<V4@<&%S<W=O<F0@*B\-"B\O#0HO+R!%;F0@;V8@875T
M;U]P<F5P96YD7V9I;&4@=F%R:6%B;&5S#0H-"@T*)%-%4U-?5$%"3$4@/2 B
M<V5S<VEO;G,B.PT*)%-%4U-?3$E&12 ](&=E=%]C9F=?=F%R*")S97-S:6]N
M+F=C7VUA>&QI9F5T:6UE(BD[#0HD4T534U]$0B ]("(B.PT*#0HO*@T*<')I
M;G0H(FAO<W0Z("1315-37T1"2$]35#QB<CXB*3L-"G!R:6YT*")N86UE.B D
M4T534U]$0DY!344\8G(^(BD[#0IP<FEN="@B=7-E<CH@)%-%4U-?1$)54T52
M/&)R/B(I.PT*<')I;G0H(G!A<W,Z("1315-37T1"4$%34SQB<CXB*3L-"G!R
M:6YT*")S97-S:60Z("102%!315-3240\8G(^(BD[#0IP<FEN="@B;&EF93H@
M)%-%4U-?3$E&13QB<CXB*3L-"B\O9&EE*"D[#0HJ+PT*#0IF=6YC=&EO;B!S
M97-S7V]P96XH)'-A=F5?<&%T:"P@)'-E<W-I;VY?;F%M92D@>PT*"6=L;V)A
M;" D4T534U]$0DA/4U0L("1315-37T1"55-%4BP@)%-%4U-?1$)005-3+" D
M4T534U]$0DY!344L("1315-37T1".PT*#0H):68@*" A;7ES<6Q?<&-O;FYE
M8W0H)%-%4U-?1$)(3U-4+" D4T534U]$0E5315(L("1315-37T1"4$%34RDI
M('L-"@D)96-H;R B/&QI/D-A;B=T(&-O;FYE8W0@=&\@)%-%4U-?1$)(3U-4
M(&%S("1315-37T1"55-%4B([#0H)"65C:&\@(CQL:3Y->5-13"!%<G)O<CH@
M(BP@;7ES<6Q?97)R;W(H*3L-"@D)9&EE.PT*"7T-"@EI9B H("$@;7ES<6Q?
M<V5L96-T7V1B*"1315-37T1"3D%-12DI('L-"@D)96-H;R B/&QI/E5N86)L
M92!T;R!S96QE8W0@9&%T86)A<V4@)%-%4U-?1$).04U%(CL-"@D)9&EE.PT*
M"7T-"GT-"@T*9G5N8W1I;VX@<V5S<U]C;&]S92@I('L-"@ER971U<FX@=')U
M93L-"GT-"@T*9G5N8W1I;VX@<V5S<U]R96%D*"13240I('L-"@EG;&]B86P@
M)%-%4U-?1$(L("1315-37U1!0DQ%.PT*#0H))'%R>2 ](")314Q%0U0@=F%L
M=64@1E)/32 D4T534U]404),12!72$5212!S97-S:V5Y(#T@)R13240G($%.
M1"!E>'!I<GD@/B B("X@=&[EMAIL PROTECTED]*"21R97-U;'0@/2!M>7-Q;%]Q=65R
M>2@D<7)Y*3L-"@T*#0H):68@*&QI<W0H)'9A;'5E*2 ](&UY<W%L7V9E=&-H
M7W)O=R@D<F5S=6QT*2D@>PT*"0ER971U<FX@)'9A;'5E.PT*"7T-"GT-"@T*
M9G5N8W1I;VX@<V5S<U]W<FET92@D4TE$+" D=F%L*2![#0H)9VQO8F%L("13
M15-37T1"+" D4T534U]404),12P@)%-%4U-?3$E&13L-"@T*"21E>'!I<GD@
M/2!T:6UE*"D@*R D4T534U],249%.PT*"0T*"21Q<GD@/2 B24Y315)4($E.
M5$\@)%-%4U-?5$%"3$4@5D%,5453("@G)%-)1"<L("<D97AP:7)Y)RP@)R1V
M86QU92<I(CL-"@DD<F5S=6QT(#T@;7ES<6Q?<75E<GDH)'%R>2D[#0H-"@EI
M9B H(2 D<F5S=6QT*2![#0H)"21Q<GD@/2 B55!$051%("1315-37U1!0DQ%
M(%-%5"!E>'!I<GD@/2 G)&5X<&ER>2<L('9A;'5E(#T@)R1V86QU92<@5TA%
M4D4@<V5S<VME>2 ]("<D4TE$)R!!3D0@97AP:7)Y(#X@(B N('1I;64H*3L-
M"@D))')E<W5L=" ](&UY<W%L7W%U97)Y*"1Q<GDI.PT*"7T-"GT-"@T*9G5N
M8W1I;VX@<V5S<U]D97-T<F]Y*"13240I('L-"@EG;&]B86P@)%-%4U-?5$%"
M3$4[#0H-"@DD<7)Y(#T@(D1%3$5412!&4D]-("1315-37U1!0DQ%(%=(15)%
M('-E<W-K97D@/2 G)%-)1"<B.PT*"21R97-U;'0@/2!M>7-Q;%]Q=65R>2@D
M<7)Y*3L-"GT-"@T*9G5N8W1I;VX@<V5S<U]G8R@D4T534U],249%*2![#0H)
M9VQO8F%L("1315-37U1!0DQ%.PT*#0H))'%R>2 ](")$14Q%5$4@1E)/32 D
M4T534U]404),12!72$5212!E>'!I<GD@/" B("X@=&EM92@I("T@)%-%4U-?
M3$E&13L-"@DD<F5S=6QT(#T@;7ES<6Q?<75E<GDH)'%R>2D[#0H-"@ER971U
M<FX@;7ES<6Q?869F96-T961?<F]W<R@D<F5S=6QT*3L-"GT-"@T*<V5S<VEO
M;E]S971?<V%V95]H86YD;&5R* T*"2)S97-S7V]P96XB+ T*"2)S97-S7V-L
M;W-E(BP-"@DB<V5S<U]R96%D(BP-"@DB<V5S<U]W<FET92(L#0H)(G-E<W-?
;9&5S=')O>2(L#0H)(G-E<W-?9V,B*3L-"C\^
`
end


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to