|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
session configuration problems
Hi everyone!
I am trying to set up some scripts which rely on sessions under PHP 4.3.4. I have edited php.ini and tried to set session.save_path to several possible destinations (like c:/windows/temp) but I always get warnings that identify that PHP is trying to save the session files under /tmp. Of course, sessions do not work: Warning: session_start(): open(/tmpsess_ffa1090bd0920f2479449e4b14c0e69f, O_RDWR) failed: No such file or directory (2) in.... .... Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created. And the most interesting: I tried checking wheather php.ini interpreted correctly. print(ini_get('session.save_path')); prints the correct path. Is there some other variable I have to set? Thank you! -Yavor |
|
#2
|
|||
|
|||
|
RE: session configuration problems
Hi again!
I got around the problem by creating a folder c:tmp. So the problem is not so critical now. However, this is only a trick and if someone has an idea why it doesn't work the way it is supposed to, please write! Bye, Yavor |
|
#3
|
|||
|
|||
|
RE: session configuration problems
don't be offended, if this simple tip is not Your case:
If You have php.ini both in c:php and c:windows then it's no use modifing the first one as php always looks for the windows one first. Or on some conf-s it doesn't see the one in c:php at all. So the best practice is to put it in c:windows |
|
#4
|
|||
|
|||
|
RE: session configuration problems
Hi!
Thanks for the replay valgevali! The problem was not related to php.ini. The reason for the behaviour was that one of the scripts enforced a custom sessions directory. Originally, I did not know about this (it was not developed by me) and that's why it looked strange to me. I just found that this week. Bye, Yavor |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > session configuration problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|