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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
katleesAuthor Commented:
I cleared my cache and internet files, rebooted and it works..
0
Ray PaseurCommented:
Excellent!  Thanks for the points, ~Ray
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.