|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem related to session
i am new user of php , i am trying out to use session to pass variables from one php page to other page
i am getting an error Warning: Cannot send session cache limiter - headers already sent (output started at c:\apache\htdocs\companydesc.php:11) in c:\apache\htdocs\companydesc.php on line 13 along with the output i am getting this error , plz help me how to get rid of such errors thank u in advance |
|
#2
|
|||
|
|||
|
start_session(); (or session_start(); i always forget) needs to be placed at the very very start of the page before anything else.
__________________
I drunk red bull and grew wiings!!! |
|
#3
|
||||
|
||||
|
it has to be on the first line. No white space, no html, nothing sent back to the browser before the session is initiated. The error you're getting "headers already sent" is very common when starting with sessions.
your code should start like this: <?php seassion_start(); on every page.
__________________
There's no limit to what you can accomplish as long as you don't care who gets the credit. |
|
#4
|
|||
|
|||
|
guess i do get confused but i never spelt session with an 'a' in it, hehe.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Problem related to session |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|