Forum Moderators: coopster

Message Too Old, No Replies

seesion start warning in script plz help me

session.save_path

         

rizwan

6:31 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



Warning: session_start(): open(/tmp\sess_526e492c7e6fbe4887e4c52821b34be7, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\TempMgt\index.php on line 15

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\TempMgt\index.php:15) in C:\Program Files\Apache Group\Apache2\htdocs\TempMgt\index.php on line 15

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\TempMgt\index.php:15) in C:\Program Files\Apache Group\Apache2\htdocs\TempMgt\index.php on line 15

Warning: Unknown(): open(/tmp\sess_526e492c7e6fbe4887e4c52821b34be7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

sned

7:13 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



Well, looks like two things to me: ... Your /tmp directory where the session variables are stored hasn't been created, so you need to manually create that, or change the settings for php sessions.

The other I'm guessing is just a white space issue.

session_start() has to be the very first thing after the <?. No extra spaces, etc.

I usually just do

<?
session_start();

Good Luck

rizwan

7:35 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



dear sned,
there is no space before session_start();

***************************************************
i have edited the 'c:\winxp\php.ini' file & set the
session.save_path = c:\winxp\temp

but when i check the php information by using method
phpinfo();

it shows default setting of 'c:\winxp\php.ini'
session.save_path = /tmp
***************************************************

sned

8:15 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



try changing the session.save_path to c:/winxp/temp

( / instead of \ )

as far as the headers go, is your session declaration above everything else? .. before <html> .. etc.

coopster

8:18 pm on Jun 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Make sure you are editing the correct
php.ini
file. Typically, on a Windows XP installation, the
php.ini
file is located in the
C:\WINDOWS
directory.

rizwan

3:45 pm on Jun 22, 2004 (gmt 0)

10+ Year Member



yes i edit the php.ini file from window folder

and i also chk by putting both '/' and '\' but ....

coopster

4:31 pm on Jun 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would search your pc to make sure you only have one
php.ini
file and it is indeed the one you are editing. Then, make sure that you are editing the correct line in that file and not a comment above the actual directive or otherwise. Lastly, and I don't believe this should really make a difference, but stop and restart apache (or possibly reboot your Windows pc).