★ wanayoo — archive 1999 http://www.php.net/manual/function.session-save-path.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Sessions
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Sessions
* session_start
* session_destroy
* session_name
* session_module_name
* session_save_path
* session_id
* session_register
* session_unregister
* session_unset
* session_is_registered
* session_get_cookie_params
* session_set_cookie_params
* session_decode
* session_encode
Manual: session_save_path
View the source code for this pageSearch the site



Previous page
 session_module_name
 Updated
Sat, 12 Aug 2000
session_id 
Next page


session_save_path

(PHP4 )

session_save_path -- Get and/or set the current session save path

Description

string session_save_path ([string path])

session_save_path() returns the path of the current directory used to save session data. If path is specified, the path to which data is saved will be changed.

Note: On some operating systems, you may want to specify a path on a filesystem that handles lots of small files efficiently. For example, on Linux, reiserfs may provide better performance than ext2fs.

Note: This function was added in PHP 4.0.


User Contributed Notes: session_save_path


davidd@retailservicesinc.com
15-Mar-2000 04:19
The following does not seem to work for win32 PHP4:
<PRE>
$path = session_save_path();
print("Path to sessions is $path
\n");
$path = session_save_path("/temp");
print("Path to sessions is $path
\n");
$path = session_save_path();
</PRE>

The return from the print is always '\tmp'. Further, my temp space is \temp, not \tmp. Sessions did not work until I created \tmp.

Further, \tmp



jaishin@iii.org.tw
25-Apr-2000 05:33
David ,

I think you should give session_save_path a valid path in win32
,like "c:\temp".




stefan@digiconcept.net
29-Jun-2000 05:02
PHP is not able to change windows_drives correctly. that means you've to choose a path on the same drive as your webroot. i've installed php on drive c: and webroot on dirve e:, so my session_save_path has to be also on drive e:


andrew@flarn.com
02-Aug-2000 12:44
anyone happen to know if you could share sessions between multiple server by having them write the sessions to a shared save path via NFS or something?



 About Notes


Previous page
 session_module_name
 Updated
Sat, 12 Aug 2000
session_id 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.