Forums

PHP

This topic is locked

Another little problem with Live Data!B-)

Posted 20 Aug 2001 00:30:34
1
has voted
20 Aug 2001 00:30:34 Patrick Meunier posted:
Hi everybody,

I've again a little problem.

When I press Live Data, UD tells me that thing: WARNING:Cannot send session cookie-headers already sent by (outpout started at d:\program files\easyphp\www\seeker\public_html\zone membre\membre_5utgdic4ca.php:1)in d:\program files\easyphp\www\seeker\public_html\zone membre\membre_5utgdic4ca.php on line 11.

WARNIG: Cannot send session cache limiter-headers already sent (output started at d:\program files\easyphp\www\seeker\public_html\zone membre\membre_5utgdic4ca.php:1) in d:\program files\easyphp\www\seeker\public_html\zone membre\membre_5utgdic4ca.php on line 11

On internet this message is displayed:

Execute($KT_rsUser_Source) or DIE($connmembres->ErrorMsg()); if (!$KT_rsUser->EOF) { // username and password match - this is a valid user $KT_Username=$KT_valUsername; session_register("KT_Username"; if ($KT_fldUserAuthorization != "" { $KT_UserAuthorization=$KT_rsUser->Fields($KT_fldUserAuthorization); } else { $KT_UserAuthorization=""; } session_register("KT_UserAuthorization"; if (isset($accessdenied) && false) { $KT_redirectLoginSuccess = $accessdenied; } $KT_rsUser->Close(); session_register("KT_login_failed"; $KT_login_failed = false; header ("Location: $KT_redirectLoginSuccess"; exit; } $KT_rsUser->Close(); session_register("KT_login_failed"; $KT_login_failed = true; header ("Location: $KT_redirectLoginFailed"; exit; } ?> Execute("SELECT login, password FROM membres" or DIE($connmembres->ErrorMsg()); $Record_login_numRows=0; $Record_login__totalRows=$Record_login->RecordCount(); ?>

When I try it on my local server it go straight with no problem...<img src=../images/dmxzone/forum/icon_smile_dead.gif border=0 align=middle>

Patrick
---------------
Reset! The one magical button!!!

Patrick
------------
Reset! The one magical button!

Replies

Replied 20 Aug 2001 14:50:53
20 Aug 2001 14:50:53 Tim Green replied:
This is because UD cannot send or receive session data. If you get this error it means you haven't coded for this possibility, and UD bombs out with that error message.

It happens to me quite often, so don't worry too much about it. Just remember that LiveData view is for viewing pages containing live data to make sure the layout is OK. UD won't act as a debugger too, and Sessions are really beyond the scope of the Live Data functionality.

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 23 Aug 2001 00:50:42
23 Aug 2001 00:50:42 Patrick Meunier replied:
Hi Rawyeg!<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

It's okay for live Data...but on internet it continue to display a session error...

Execute($KT_rsUser_Source) or DIE($connmembres-&gt;ErrorMsg()); if (!$KT_rsUser-&gt;EOF) { // username and password match - this is a valid user $KT_Username=$KT_valUsername; session_register("KT_Username"; if ($KT_fldUserAuthorization != "" { $KT_UserAuthorization=$KT_rsUser-&gt;Fields($KT_fldUserAuthorization); } else { $KT_UserAuthorization=""; } session_register("KT_UserAuthorization"; if (isset($accessdenied) && false) { $KT_redirectLoginSuccess = $accessdenied; } $KT_rsUser-&gt;Close(); session_register("KT_login_failed"; $KT_login_failed = false; header ("Location: $KT_redirectLoginSuccess"; exit; } $KT_rsUser-&gt;Close(); session_register("KT_login_failed"; $KT_login_failed = true; header ("Location: $KT_redirectLoginFailed"; exit; } ?&gt; Execute("SELECT login, password FROM membres" or DIE($connmembres-&gt;ErrorMsg()); $Record_login_numRows=0; $Record_login__totalRows=$Record_login-&gt;RecordCount(); ?&gt;

How I can correct that??

Patrick
---------------
Reset! The one magical button!!!<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Patrick
------------
Reset! The one magical button!
Replied 23 Aug 2001 12:51:55
23 Aug 2001 12:51:55 Tim Green replied:
Check in your code that there are no blank lines and no HTML before the code blocks that create the session.

Check all include files too.

If 'Headers are already sent' it means that some info has been sent to the browser, and that's why you're getting the errors...

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic