[PHP] Help!session problem!
Hello: I want your help! And i am pool in english! The session sometime works well,sometime works badly! It creates new empty file in /tmp.I also find this problem with apache1.3.12php4.1.1sybase11.9.2linux My php.ini is fault my server config: php4.3.3 httpd2.0.44 linux 9 sybase-11.9.2 tar-vzxf php-4.3.3.tar.gz ../configure ?with-apxs2=/home/apache/bin/apxs ?with-sybase-ct=/opt/Sybase-11.9.2 ?enable-ftp ?enable-track-vars ?disable-cli make make install cp php.ini-dist /usr/local/lib/php.ini Thanks a lot Reproduce code: --- login.php: $user_array=sybase_fetch_row($result); session_start(); session_register(user_array); ... index.php: session_start(); $user_name=$user_array[1]; __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [PHP] Help!session problem!
--- ÎÚÓÐ ÎÞ [EMAIL PROTECTED] wrote: Reproduce code: --- login.php: $user_array=sybase_fetch_row($result); session_start(); session_register(user_array); ... index.php: session_start(); $user_name=$user_array[1]; Try this instead: login.php: session_start(); $_SESSION['user_array'] = sybase_fetch_row($result); ... index.php: session_start(); $user_name = $_SESSION['user_array']['1']; ... Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP session cache limiters
this means that somewhere (on line 19 of /home/sisource/public_html/stage/administration/config.php) there is an output. For sessions to work, session_start() should be *before* any output was created. Even a new line or a whitespace would break it. -- Maxim Maletsky [EMAIL PROTECTED] Didier McGillis [EMAIL PROTECTED] wrote... : I dont know where this came from. The site was working fine, unless someone else on my team made a fix in this file. Any thoughts on this error? Warning: Cannot send session cache limiter - headers already sent (output started at /home/sisource/public_html/stage/administration/config.php:19) in /home/sisource/public_html/stage/administration/phpSecurePages/checklogin.php on line 134 _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP session cache limiters
I dont know where this came from. The site was working fine, unless someone else on my team made a fix in this file. Any thoughts on this error? Warning: Cannot send session cache limiter - headers already sent (output started at /home/sisource/public_html/stage/administration/config.php:19) in /home/sisource/public_html/stage/administration/phpSecurePages/checklogin.php on line 134 _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP session cache limiters
- Original Message - From: Didier McGillis [EMAIL PROTECTED] Sent: Monday, January 27, 2003 7:14 PM Subject: [PHP] HELP session cache limiters Any thoughts on this error? Warning: Cannot send session cache limiter - headers already sent (output started at /home/sisource/public_html/stage/administration/config.php:19) in What's happening at line 19 in /home/sisource/public_html/stage/administration/config.php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP session cache limiters
Nevermind, I have found the person who fooled with the code and then lied about being in the file. From: Matt [EMAIL PROTECTED] To: Didier McGillis [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] HELP session cache limiters Date: Mon, 27 Jan 2003 19:48:31 -0500 - Original Message - From: Didier McGillis [EMAIL PROTECTED] Sent: Monday, January 27, 2003 7:14 PM Subject: [PHP] HELP session cache limiters Any thoughts on this error? Warning: Cannot send session cache limiter - headers already sent (output started at /home/sisource/public_html/stage/administration/config.php:19) in What's happening at line 19 in /home/sisource/public_html/stage/administration/config.php? _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HELP...session
Hi, I hope u r regisitering the session variable (i.e. username) on submit of index.php. If u r doing this then u can access the same by using $HTTP_SESSION_VARS['username'] assuming u r registering ur session variable as username. I hope all the frames have session_start also. karthik. - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:02 AM Subject: [PHP] HELP...session Hi there I need help about session see i have a page (index.php) that used this session_start(); session_register(username); and i got input username after the submit button is click i move into a frame pages.. then in the frame i define again session_start(); for each frame...i got two frame.. i intended to parse the username into my frame...but got nothing i intended to parse the username all over the pages (in frame) until he/she log out can anyone help me with it Thanks in Advance Yamin Prabudy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]