-
Oct 11th, 2002, 11:43 PM
#1
Thread Starter
Hyperactive Member
Warning: Cannot send session cache limiter *RESOLVED*
PHP Code:
Warning: Cannot send session cache limiter - headers already sent (output started at /home/alltom/public_html/flame/template.inc.php:1) in /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
-
Oct 12th, 2002, 11:11 AM
#2
Fanatic Member
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.
-
Oct 12th, 2002, 03:16 PM
#3
Thread Starter
Hyperactive Member
Reach me at:
AIM: FlameWide
AIM: Itz deep6
MSN/Email: flame_gandalf@hotmail.com
Check out these sites:
My Blog
-
Oct 12th, 2002, 03:41 PM
#4
Stuck in the 80s
you might also want to check out current PHP programming conventions. like those on how to properly do sessions these days.
-
Oct 12th, 2002, 03:44 PM
#5
Thread Starter
Hyperactive Member
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 error: Failed 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 (/tmp) in 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
-
Oct 12th, 2002, 03:46 PM
#6
Stuck in the 80s
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.
-
Oct 12th, 2002, 03:53 PM
#7
Thread Starter
Hyperactive Member
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
-
Oct 12th, 2002, 04:48 PM
#8
Stuck in the 80s
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.
-
Oct 12th, 2002, 05:07 PM
#9
Thread Starter
Hyperactive Member
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
-
Oct 15th, 2002, 02:25 PM
#10
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|