Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Php Session_start Error Message


3 replies to this topic

#1 TheMoose

    Newbie

  • Kontributors
  • Pip
  • 0 posts

Posted 03 December 2008 - 11:00 PM

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/home/rifqi96/tmp) is not within the allowed path(s): (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose/public_html/vertex/adminonly.php on line 2

I get that error message whenever it tries to do the session_start function it never did that before and I don't know who rifqi96 is.


#2 Kedishen

    Newbie

  • Kontributors
  • Pip
  • 0 posts

Posted 10 December 2008 - 02:45 AM

In the .htaccess in your public_html folder, put:

php_value session.save_path /home/USERLOGIN/tmp



(Where it says USERLOGIN, put the login you use to access cpanel. I believe yours is moose > (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose)

#3 koshar29

    Newbie

  • Kontributors
  • Pip
  • 0 posts

Posted 26 January 2009 - 06:28 AM

View PostKedishen, on Dec 10 2008, 02:45 AM, said:

In the .htaccess in your public_html folder, put:

php_value session.save_path /home/USERLOGIN/tmp



(Where it says USERLOGIN, put the login you use to access cpanel. I believe yours is moose > (/home/moose:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/moose)

I'm getting an Error similar to this. I did what you said to do. but now, I get this
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/koshar29/public_html/yourself/index.php:2) in /home/koshar29/public_html/yourself/index.php on line 117

what am I doing wrong?

#4 rvalkass

    apt-get moo

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,107 posts
  • Gender:Male
  • Location:Devon, England
  • Interests:At the moment, Physics mainly!
  • myCENT:69.42
  • Spam Patrol

Posted 26 January 2009 - 08:38 AM

"headers already sent" means that you have already sent some output to the browser, and have then tried to send headers afterwards, which doesn't work. You need to re-order your code so that all your headers are sent before any text output.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users