php세션 에러.
- Posted at 2008/01/02 17:40
- Filed under 컴터이야기/historia
세션을 이용해 로그인을 구현하던 중 발견한 문제.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php:5) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php on line 66
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php:5) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php on line 66
general
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
이런 에러가 발견되었는데, 흐밍 원인을 알 수 없어 함수가 잘 못 된 줄 알고 시간만 보내고 나서 쿠키로 바꿀까 하다가 혹시나 해서 구글 검색해봤더니, session_start함수가 실행되기 전에는 브라우저에서 어떤 것도 쓰여지면 안된다는 것-_-;;;
뭐야 누가 이런식의 이상한 기능을 개발한거야-_-;;
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
이것도 있는데 session_register함수를 권장하지 않는듯. 이것도 수정
$_SESSION["변수명"]방식으로.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php:5) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php on line 66
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php:5) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ldb\login1.php on line 66
general
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
이런 에러가 발견되었는데, 흐밍 원인을 알 수 없어 함수가 잘 못 된 줄 알고 시간만 보내고 나서 쿠키로 바꿀까 하다가 혹시나 해서 구글 검색해봤더니, session_start함수가 실행되기 전에는 브라우저에서 어떤 것도 쓰여지면 안된다는 것-_-;;;
뭐야 누가 이런식의 이상한 기능을 개발한거야-_-;;
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
이것도 있는데 session_register함수를 권장하지 않는듯. 이것도 수정
$_SESSION["변수명"]방식으로.
Posted by 오스트레앙
- Tag
- 에러




,
php




- Response
- No Trackback , No Comment
Trackback URL : http://ostre8585.com/tt/trackback/328


