Change of Servers Causing Issues

I am moving a website from one server to another and now get this error when trying to login to the admin
Warning: session_start() [function.session-start]: open(/tmp/sess_5c69a72d5fc2d463c54c309e888270ca, O_RDWR) failed: Permission denied (13) in /home/cobblers/public_html/includes/check_login.inc on line 2
 Line 2 is the session start line
<?php
$checkvar = session_start();
if (!isset($_SESSION['username']))
{
      header('Location: login.php');
      exit();
}
$username = $_SESSION['username'];
?>
katleesAsked:
Who is Participating?
 
Ray PaseurCommented:
Sometimes browsers will cache pages, but if you're using the same computer and the same browser and getting different results when you connect via different networks, it somewhat narrows the scope of inquiry.
0
 
Shinesh PremrajanEngineering ManagerCommented:
In the php.ini file you need to set the session path, and that path folder should be writable by PHP.

hope this helps
0
 
Ray PaseurCommented:
It sounds like /tmp/ is lacking the required directory permissions to let PHP write into it.  Who is your hosting company?  They should be able to fix this immediately.  Depending on your OS, etc., your PHP scripts are probably running as "nobody" so giving "nobody" the permissions is a good first step.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
katleesAuthor Commented:
Here is another twist - if I access this page from my home - I can see it and it all works well. When I am in my office, on the same laptop, I can not. So I am hesitant to change anything on the server.
0
 
katleesAuthor Commented:
I cleared my cache and internet files, rebooted and it works..
0
 
Ray PaseurCommented:
Excellent!  Thanks for the points, ~Ray
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.