PWD -
Joined: 04 Jan 2005 Posts: 34 Location: trying to conquer these fears I thought were GONE
|
Posted: Fri Feb 25, 2005 8:43 am Post subject: Can not set session.save_path in php.ini |
|
|
Did a quick search and did not find any related topics, so here I go:
First of all, getting into security and Sessions quite heavily as my site will eventually allow clients to access their account information and update as needed. Of course, one of the first "suggestions" by many experienced coders is to move the session info out of the default /tmp folder and into a file outside the php file. (eventually I'll move them into a mySQL database...one learning curve at a time..PLEASE. I'm NOT in my 20's anymore...lol)
Anywhoo, I went to my php.ini file to set my session.save_path setting and it wouldn't let me! Well, it DID let me, I saved it, but PHP wouldn't send my session data to the file I specified.
If I set the session_save_path() directly in my script before session_start() as required, it sent the session file just fine to my new directory. It was my understanding, STUDYING the PHP manual that in changing my .ini file, I would not have to declare session_save_path() at the beginning of every script.
I changed it from the following:
Code: |
// PHP default
session.save_path = /tmp
to
//My new session folder
session.save_path = c:\folder
|
Now first of all, folder /tmp doesnt exist, yet it saves it to c:\php\sessiondata (a default folder php installed when I installed PHP).
Second: I'm wondering if I even need to do this at all using Abyss? And if i still need to change it, why isn't PHP executing my session data to where I set this directive in the .ini file? Is there a conflict with Abyss?
I just bought this new computer 2 weeks ago and reinstalled everything for my site.
Abyss Version: 1.2
PHP Version: 4.3.10.10
OS: Windows XP
I could really use some input.
Thanks for remembering when you were a novice and helping me learn. So one day I may give as freely as you have here today.
Sincerely,
PWD |
|