Can not set session.save_path in php.ini

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
PWD
-


Joined: 04 Jan 2005
Posts: 34
Location: trying to conquer these fears I thought were GONE

PostPosted: Fri Feb 25, 2005 8:43 am    Post subject: Can not set session.save_path in php.ini Reply with quote

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
Back to top View user's profile Send private message Send e-mail Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Feb 25, 2005 9:22 am    Post subject: Reply with quote

http://uk2.php.net/session_save_path

Should help you out :)

Basically either use \\ e.g C:\\windows\temp or / e.g. C:/windows/temp but not \ - the page also mentions a few quirks you should be aware of.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group