[thelist] php session_start() function

Santilal Parbhu santilal at scorpioneng.co.nz
Sun Apr 9 06:13:37 CDT 2006


Thanks for the help.

Unfortunately I am no further ahead.

>From phpinfo I have copied and pasted the following:

Configuration File (php.ini) Path php.ini

I presume this means that the php.ini file is in the same directory as php.
I have found a php.ini file in the same directory and edited it as below.

I have copied and pasted the following from php.ini:

session.save_handler      = files   ; handler used to store/retrieve data
session.save_path         = c:\WINDOWS\Temp; argument passed to save_handler
                                    ; in the case of files, this is the
                                    ; path where data files are stored

The directory c:\WINDOWS\Temp is exactly as in my directory structure.  This
looks right to me - any comments??

After re-booting I got the following from phpinfo:
session.save_handler	 files	 files
session.save_path		 /tmp 	/tmp

This suggests that the changes I made did not work.  I looked further and in
the environment area of phpinfo I found:

TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP

I am not sure if the above two lines are relevant.

I also searched the php.ini file to see if the session.save_path could have
been set twice - but alas no.

The only thing I haven't done is edit the php.ini-dist file.  I know this
exists but I don't know what it's for or what it does.

It still seems to me that php is picking up the wrong path from somewhere,
but I don't know where.  Or could it be that php is not initialising each
time I reboot my PC.  When does php initialise??

Thanks everyone for your help - 	I'm sure we can crack this one.


Santilal

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org]On Behalf Of kasimir-k
Sent: Sunday, 9 April 2006 9:35 p.m.
To: thelist at lists.evolt.org
Subject: Re: [thelist] php session_start() function


Santilal Parbhu scribeva in 09/04/2006 0:40:
> I edited the first two files to make session.save_path c:\window\temp, and
> rebooted my PC, but when I ran phpinfo(), I found that the
seesion.save_path
> was still /tmp.

Make sure also that the directory you specify exists - and is
"c:\window\temp" typo here, or in your php.ini, or is your system
directory really "window", not "windows" ;-)

Another gotcha I could imagine: make sure that in php.ini you don't have
session.save_path set twice, first to C:\windows\temp and later to /tmp

> So either I have edited the wrong php.ini file or it hasn't taken up the
new
> configuration.  Any ideas on how to make it do this?

phpinfo() tells you also the path of php.ini, in the first section
there's entry "Configuration File (php.ini) Path"


.k
--

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !





More information about the thelist mailing list