session_start() warning is coming????

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gagan
Forum Newbie
Posts: 10
Joined: Fri Jan 30, 2009 5:03 am

session_start() warning is coming????

Post by gagan »

Hi everyone,

I am facing such type of warning is coming in php file.How it can be resolved . I have also used session_start() function in php file as a first line in php code.

I have used it just prior to sending output to browser.But still warning is coming. I am so confused about this . Please help me .
I am sending what type of warning is coming. But i am unable to solve this warning. Please help me.

Such type of warning is coming-----------

Warning: session_start() [function.session-start]: open(/tmp/php-ses/sess_7dbaf8a556cd076ed8409da8908ea802, O_RDWR) failed: No such file or directory (2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/vg002web01/12/46/1014612/web/login/user.main.php:2) in /home/vg002web01/12/46/1014612/web/login/user.main.php on line 9


Thanks,
Gagan
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: session_start() warning is coming????

Post by susrisha »

Code: Select all

 
/tmp/php-ses/
 
check for the write permissions for this folder. Create this folder if it doesnot exist
Post Reply