Session Test Problem

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
primster7
Posts: 10
Joined: Wed Aug 02, 2006 3:35 am

Session Test Problem

Post by primster7 »

Script URL:
Version of script: 0931
Version of PHP: 4.3.9
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:


I installed the program on another free linux host server. However, I can install it on my paid one. I ran the session test and here are the results (website name changed) ..

Warning: session_start(): open(/var/lib/php/session/sess_9f0e86c39b648e173297b301fb079834, O_RDWR) failed: Permission denied (13) in /vservers/website/htdocs/session_test.php on line 4

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /vservers/website/htdocs/session_test.php:4) in /vservers/website/htdocs/session_test.php on line 4

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /vservers/website/htdocs/session_test.php:4) in /vservers/website/htdocs/session_test.php on line 4
Session started successfully!
CLICK HERE FOR PAGE 2
Warning: Unknown(): open(/var/lib/php/session/sess_9f0e86c39b648e173297b301fb079834, O_RDWR) failed: Permission denied (13) 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 (/var/lib/php/session) in Unknown on line 0


When I run session_test2.php it says:

$_SESSION['test'] is set to: FALSE



I''m hosted by a redhat Linux server.

Any help would be appreciated.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well the problem is what the PHP warning says:

Please verify that the current setting of session.save_path is correct (/var/lib/php/session).

Also make sure the session folder is world-writable (chmod it to 777).

If you're not sure what this all means ask your host to check this for you.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
primster7
Posts: 10
Joined: Wed Aug 02, 2006 3:35 am

Question on path

Post by primster7 »

Is the /var/lib/php/session a folder that I can see? If so, I don't see it so I created it and CHMOD 777 it. However, I still get the same error message. Any help would be appreciated.

BTW: Great program!


Hoops
primster7
Posts: 10
Joined: Wed Aug 02, 2006 3:35 am

Session problem fixed

Post by primster7 »

I searched all of the net and couldn't find a solution. I then copied and pasted the error message and sent it to my webhost. They changed the permsission to the folder and now it works perfect.

Thanks!

Klemen Stirn wrote:Well the problem is what the PHP warning says:

Please verify that the current setting of session.save_path is correct (/var/lib/php/session).

Also make sure the session folder is world-writable (chmod it to 777).

If you're not sure what this all means ask your host to check this for you.
Post Reply