phily245 Posted November 29, 2011 Share Posted November 29, 2011 Hi all, I have a session problem on my development site. Whenever I go to my login screen at www.mydomain.com/my/path/index.php, i get the following error messages: Warning: session_start() [function.session-start]: open(/tmp/sess_f89c3850adf5a752b13f5c6b9022d8c4, O_RDWR) failed: Permission denied (13) in /home/account/public_html/shop_lite/admin/index.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/account/public_html/shop_lite/admin/index.php:2) in /home/account/public_html/shop_lite/admin/index.php on line 2 However, when I go to mydomain.com/my/path/index.php, the error messages aren't there. I am very confused. We don't have an SSL (which google suggested it could be) or any whitespace between the opening php tag. I have chmoded the /tmp directory to 777 but to no avail. Any ideas? My opening code is below: <?php session_start(); require_once("includes/db_connector.php"); include("includes/cms_class.php"); include("includes/login_class.php"); loginForwarder(); $issue = checkLoginIssue(); if (isset($_POST["login"])) { loginUser($_POST["email"], $_POST["password"]); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/my_template.dwt.php" codeOutsideHTMLIsLocked="false" --> Quote Link to comment https://forums.phpfreaks.com/topic/252024-session-start-failure/ Share on other sites More sharing options...
Adam Posted November 29, 2011 Share Posted November 29, 2011 What are the permissions on one of the session files? Quote Link to comment https://forums.phpfreaks.com/topic/252024-session-start-failure/#findComment-1292132 Share on other sites More sharing options...
phily245 Posted November 29, 2011 Author Share Posted November 29, 2011 I've logged in multiple times (nd am currently logged in), but I cannot find any session files in the /tmp directory :/ Quote Link to comment https://forums.phpfreaks.com/topic/252024-session-start-failure/#findComment-1292134 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.