This topic is locked

Login Check

11/9/2007 17:02:34
PHPRunner General questions
G
glav author

When a user is loging in I want to check if a value exists in a field in the user table for that user. For example if the email field is null.

I can get it to work only when the value is true for Null but it gives me a header problem when an e-mail does exist.
"Cannot modify header information - headers already sent by (output started at include\events.php:116)"
The check is done on succsessful login.
Anyone know what could be wrong.
Thanks

Sergey Kornilov admin 11/10/2007

It breaks trying to redirect user to another page in AfterSuccessfulLogin event. Redirect won't work after you printed a message on the web page.
Use BeforeLogin event for this purpose.

G
glav author 11/10/2007

It breaks trying to redirect user to another page in AfterSuccessfulLogin event. Redirect won't work after you printed a message on the web page.

Use BeforeLogin event for this purpose.


I have solved this issue also.