Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Warning: session_start()

    I am trying out php/mysql. I not sure why this message appear -

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\ToySales_Add.php:81) in D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\includes\restrictaccess.php on line 3

    Would appreciate any help to resolve it.
    Thanks in advanced.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by pphpnewbie View Post
    I am trying out php/mysql. I not sure why this message appear -

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\ToySales_Add.php:81) in D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\includes\restrictaccess.php on line 3

    Would appreciate any help to resolve it.
    Thanks in advanced.
    you display, echo or print, something before session_start.

    btw, how you want to help you when you don't post some code?

    Edit: if don't have any output before session start, add a line with session_cache_limiter before:
    http://www.php.net/manual/en/functio...he-limiter.php

    best regards
    Last edited by oesxyl; 01-13-2010 at 10:28 AM.

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    36
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry I'm still toying with the page. I move this script - restrictaccess to the top of the page and the problem gone.
    Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •