Results 1 to 10 of 10

Thread: Warning: Cannot send session cache limiter *RESOLVED*

  1. #1

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Warning: Cannot send session cache limiter *RESOLVED*

    PHP Code:
    WarningCannot send session cache limiter headers already sent (output started at /home/alltom/public_html/flame/template.inc.php:1in /home/alltom/public_html/flame/lib.inc.php on line 550 
    Whats wrong with that? I mean why am i getting it??

    Line 547 to 550 in lib.inc.php:
    PHP Code:
    session_set_save_handler('sess_open''''sess_read''sess_write''sess_destroy''sess_gc');            
        
    session_name('s');
        
    session_name('s');
        
    session_start(); 
    Im having problems with session_start() through out the site, any help???
    Last edited by flame_211; Oct 17th, 2002 at 09:41 PM.
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  2. #2
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    I think it means you've already sent some content to the browser. You'd have to do the session stuff first, then send the content.
    K i n g s

  3. #3

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    thanks ill check it out
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    you might also want to check out current PHP programming conventions. like those on how to properly do sessions these days.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    ok in response to kings first:

    I put all my session stuff first:
    PHP Code:
     session_set_save_handler('sess_open''''sess_read''sess_write''sess_destroy''sess_gc');            
        
    session_name('s');
        
    session_name('s');
        
    session_start(); 
    then all my other stuff,

    And I got this:
    PHP Code:
    Fatal errorFailed to initialize session module in /home/alltom/public_html/flame/users.php on line 6

    Warning
    Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmpin Unknown on line 0 
    Response to The Hobo:
    I think i got the most up-to-date functions for my version of php if thats what you mean...
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    What version are you using?

    This sounds like a PHP problem to me, not a code probably. Either something isn't setup properly somewhere (php.ini or something), or something isn't installed properly.

    I'll also admit I have no idea what session_set_save_handler() does.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    Version: PHP 4.2.1
    And im trying to contact the guy thats hosting me to get the session.save_path changed( i think thats the problem but im not sure )
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Yeah, with php 4.2, you specify a session like $_SESSION['a']; I think. Instead of session_name('s');

    It's not going to help you out, though.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393
    k, well, im gonna have my buddy look it over and figure it out :P
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: flame_gandalf@hotmail.com

    Check out these sites:
    My Blog

  10. #10
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,333
    why are you trying to serialize and save the session?

    you don't need session_set_save_handler()

    you very first line has to be session_start() before any other code.

    and why do you have session_name twice? you don't even need that.

    if you are on 4.2 then you must use $_SESSION[] the super global, unless you have globals turned on and for what reason I have no idea. by default it is turned off.

Posting Permissions

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



Click Here to Expand Forum to Full Width