At 1:48 PM +0200 7/6/08, Fabrice VIGNALS wrote:
Difficult to help you because there are many method of session :
- where do you store the sessions_variables : in local file, db or cookie ?
- how you transmit the session id, beetween
pages(runtimes) : cookie, $GET link, database ?
Did you check the availability of user cookie if you use it ?
Because if in each page of your application you
define a session variable it's sure it will be
every time here.
But the problem of session it's to transmit its
ID between different pages, or session will be
reset.
If a user don't authorised cookie you must
transmit the session id by db storage or $Get
link.
Also I don't see, a php modification during the
last upgrades to explain that's kind of session
problem.
"karma" <[EMAIL PROTECTED]> a écrit dans
le message de
news:[EMAIL PROTECTED]
Hi !
I have a very weird issue since the last Apache
upgrade (-> 2.2.8-r3, a month ago), but I'm not
sure it is related (well, I'm pretty sure it's
not).
Like many people, I've written an application
that use PHP session variables, like
$_SESSION["my_variable"].
Sometimes (it doesn't happen all the time),
_some_ of these variables are not written in
the session file and they are lost after a
simple header("Location:...); (same domain).
The session file is in the right directory
(permissions are fine), but some of my
variables are missing.
The facts :
- Apache 2.2.9 + PHP 5.2.6_rc4 running on a Gentoo (up-to-date)
- all my scripts begin with session_start().
I've tried to add session_write_close() before
every header(Location:...) call, it doesn't
help.
- I didn't change anything in my program (it
has been running just fine for 2 years), it
just began to fail from time to time (I would
say 10 times a day). There is no hidden unset()
function : it would fail for everyone.
- these variables are all set correctly, and they don't have reserved names.
- only a few variables disappear, but they are
always the same ones (could it depend on their
position in the session file ?!?)
- the session files are very small (max 100ko)
- it seems that it doesn't depend on the
browser, but IE6 and IE7 seem to be the most
affected ones (it may be because my users
mostly use these browsers).
- I can't reproduce this issue from my local
network (any OS/browser - it would be too easy
:)
- reverting to the previous stable Apache and/or PHP versions doesn't help.
- I didn't change any php.ini directive.
Any idea ?
Thanks !
If it's any comfort, I had a similar problem
sending session variables from a script in a
httpdocs directory to a script in a httpsdocs.
Some of the variables made it and some didn't. It
was very confusing. The client had php 4.3.1
installed, if that's any help.
I never did find out what the problem was and I
finally passed everything via a POST.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php