This is a discussion on Problem with SESSION variables... within the PHP Language forums, part of the PHP Programming Forums category; On Tue, 04 Nov 2003 18:29:44 +0000, Justin Koivisto wrote: > ZoombyWoof wrote: > >> On Tue, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Tue, 04 Nov 2003 18:29:44 +0000, Justin Koivisto wrote:
> ZoombyWoof wrote: > >> On Tue, 04 Nov 2003 18:15:12 +0000, Jon Kraft wrote: >> >>>ZoombyWoof <zoombywoofremove@thishotmail.com> wrote: >>> >>>>I have tried all of what you suggested above, setting use_trans_sid to 1 >>>>didnt help. I used the link with session_name=session_id, didnt help. I >>>>have changed session.save_path to /usr/local/apache2/sessions, apache owns >>>>that directory, apache is the user who runs the server, but nothing goes >>>>in that directory. I have checked the cookie_params, and it doesnt contain >>>>anything else from what is set as default in php.ini. >>>>I dont understand this....*HELP* :-) >>> >>>Hm, strange, are you sure you are editing the php.ini PHP uses? Check with >>>phpinfo(). That will also tell you whether PHP was compiled with >>>--disable-session. >> >> Yes, I'm editing the one PHP is using, it's /etc/php.ini, however, if you >> mean that it should say --disable-session under configure command at the >> top, it doesnt. Do I have to have disable-session compiled in ? Why is >> this not the default, if it's necessary to get session to work...? > > If id did say --disable-session, then sessions would be disabled and not > available on the server. > > Check the under phpinfo() for "Configuration File (php.ini) Path" and be > sure that it is set to /etc/php.ini, otherwise all your edits will do > nothing. Also be sure to restart apache after editing. It did not say --disable_session and I edit the right file. THis is really weird... /ZW |
|
|||
|
At this point, I say post a link to a phpinfo() call so we can better
see what is going on. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
|
|||
|
On Tue, 04 Nov 2003 19:39:25 +0000, Justin Koivisto wrote:
> At this point, I say post a link to a phpinfo() call so we can better > see what is going on. THis wull be opened a couple of hours, then I close it again. http://zoombywoof.dns2go.com:8029/phpinfo.php Thanx /ZW |
|
|||
|
ZoombyWoof wrote:
> THis wull be opened a couple of hours, then I close it again. > > http://zoombywoof.dns2go.com:8029/phpinfo.php session_cookie_path = / -- I have a spam filter working. To mail me include "urkxvq" (with or without the quotes) in the subject line, or your mail will be ruthlessly discarded. |
|
|||
|
I wrote, way too fast:
> session_cookie_path = / session.cookie_path = / session.save_path is local to the webserver filesystem. session.cookie_path is the HTTP path sent to the client in the cookie. -- I have a spam filter working. To mail me include "urkxvq" (with or without the quotes) in the subject line, or your mail will be ruthlessly discarded. |
|
|||
|
On Tue, 04 Nov 2003 20:18:12 +0000, Pedro wrote:
> I wrote, way too fast: >> session_cookie_path = / > session.cookie_path = / > > > session.save_path is local to the webserver filesystem. > > session.cookie_path is the HTTP path sent to the client in the cookie. I had it set to /, I just tried and changed, it didnt do any difference. I'll change it back. /ZW |
|
|||
|
ZoombyWoof wrote:
> I'll change it back. Is it working now? I just noticed -- at the locally cached phpinfo -- you did not have session.save_handler = files Maybe you have already changed that too :) -- I have a spam filter working. To mail me include "urkxvq" (with or without the quotes) in the subject line, or your mail will be ruthlessly discarded. |
|
|||
|
On Tue, 04 Nov 2003 22:54:58 +0000, Pedro wrote:
> ZoombyWoof wrote: >> I'll change it back. > > Is it working now? > > I just noticed -- at the locally cached phpinfo -- you did not have > > session.save_handler = files > > Maybe you have already changed that too :) :-)))))) Its working now! You were right, I had session.save_handler = file instead of session.save_handler = files (pluralis) The script works, the variables are echoed correctly in page2.php But, I get this warning : Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/apache2/htdocs/phptest/page2.php:4) in /usr/local/apache2/htdocs/phptest/page2.php on line 7 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/apache2/htdocs/phptest/page2.php:4) in /usr/local/apache2/htdocs/phptest/page2.php on line 7 What does this mean ? Thanx for the help. /ZW |
|
|||
|
On Wed, 05 Nov 2003 00:05:42 +0100, ZoombyWoof wrote:
> On Tue, 04 Nov 2003 22:54:58 +0000, Pedro wrote: > >> ZoombyWoof wrote: >>> I'll change it back. >> >> Is it working now? >> >> I just noticed -- at the locally cached phpinfo -- you did not have >> >> session.save_handler = files >> >> Maybe you have already changed that too :) > > :-)))))) Its working now! You were right, I had session.save_handler = > file instead of session.save_handler = files (pluralis) > > The script works, the variables are echoed correctly in page2.php But, I > get this warning : > > Warning: session_start(): Cannot send session cookie - headers already > sent by (output started at /usr/local/apache2/htdocs/phptest/page2.php:4) > in /usr/local/apache2/htdocs/phptest/page2.php on line 7 > > Warning: session_start(): Cannot send session cache limiter - headers > already sent (output started at > /usr/local/apache2/htdocs/phptest/page2.php:4) in > /usr/local/apache2/htdocs/phptest/page2.php on line 7 > > What does this mean ? > > Thanx for the help. > > /ZW I solved it. I had an echo line before session_start, which according to the php manual is Not allowed. Not everything is HunkyDory :-)) Thanx again everyone that answered me and tried to help me. /ZoombyWoof |