Click to See Complete Forum and Search --> : Sessions acting wacky


vbphysics
01-15-2005, 04:56 PM
I have just installed php and apache locally on my computer. I have set the sessions.savepath to something reasonable, and assume that I have done this right because the PHP is being processed by the apache server, BUT when I load items into the $_SESSION[] array they will not survive from page to page, and yes I am using session_start() at the very top() (a.k.a. 1st line of my code). I know that the browser isn't an issue because when I load session enabled sites while surfing the web everything works fine. The only thing I can come up with is that maybe this is a configuration issue. Any useful feedback would be greatly appreciated.

one more thing... I know the code works because I just tested in on another box, and the code works like a dream, not a nightmare.

tsinka
01-16-2005, 04:21 AM
Hi,

please post the complete set of session settings (php.ini) and an example script that doesn't work on your local installation.

Have a look at www.xampp.org which is an easy to install full featured WAMP(S) package that comes with both PHP4 and PHP5. You can switch between PHP4 and PHP5 with just one click.

Thomas

vbphysics
01-20-2005, 07:00 PM
found the problem. may sessions.savepath was wrong in the ini file. It seems weird that the session id would propogate, but hey everything works fine now.