Author Topic: session_start() Function Error  (Read 1393 times)

leequalls

  • New Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
session_start() Function Error
« on: March 13, 2008, 01:17:13 PM »
I use session_start(); at the begining of my php files I just started getting the following error:

Warning: session_start() [function.session-start]: open(/home/jcinfome/tmp/sess_7c162f04e383c93866cfb3331a5665fd, O_RDWR) failed: Permission denied (13) in /home/leeq/public_html/index.php on line 3


/home/jcinfome <-- this directory isnt even mine. does anyone know how to fix this.

Thanks
Lee

Zyppora

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1401
  • Karma: +0/-0
    • View Profile
Re: session_start() Function Error
« Reply #1 on: March 14, 2008, 03:37:05 AM »
Quote from: "leequalls"
/home/jcinfome <-- this directory isnt even mine. does anyone know how to fix this.

That's exactly your problem. PHP is configured to store session information in a folder on which it has no access. Try changing that in the php.ini file.
HAVE YOU TRIED DEBUGGING? Example code in this reply deliberately contains BUGS. PHP forum for beginners.

leequalls

  • New Member
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: session_start() Function Error
« Reply #2 on: March 14, 2008, 05:51:36 AM »
where can I find the php.ini file on my server?

Zyppora

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 1401
  • Karma: +0/-0
    • View Profile
Re: session_start() Function Error
« Reply #3 on: March 14, 2008, 07:52:24 AM »
I don't know :) It's not my server, but I'm pretty sure that whatever OS runs on it, there'll be a search function available to you.
HAVE YOU TRIED DEBUGGING? Example code in this reply deliberately contains BUGS. PHP forum for beginners.