session.auto_start
hi, got a question about session.auto_start.
if we set it to on, means we can use session?
my server set this to off and whenever i use session_start(), it requires me to login and smetimes i got this error...
Warning: Cannot send session cache limiter - headers already sent (output started at /nfs/cust/2/1/8/katrin/shop_cart/css.php:1) in /nfs/cust/2/1/8/katrin/shop_cart/admin/search_pro.php on line 5
should i ask the host to set it to on?? everything works well if session.auto_start are set to on..
Mark Hensler posted this at 05:04 — 29th July 2002.
He has: 4,048 posts
Joined: Aug 2000
No, you don't need auto_start to be on to use sessions.
What is on Line 5 in search_pro.php ?
joyce posted this at 09:25 — 29th July 2002.
They have: 164 posts
Joined: Nov 2001
this is line 5
session_start("my_pass");
but when i run it with session.auto_start() set to on, then everything seems ok..
wat's the problem then??
zollet posted this at 04:35 — 30th July 2002.
He has: 1,016 posts
Joined: May 2002
joyce,
what are the 4 first lines in your script? Do you happen to have an include() or echo line? Post them here so we can see where the error is.. Try moving session_start("my_pass"); to the first line and see what happens.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.