php-windows Digest 17 Jan 2001 10:05:27 -0000 Issue 401

Topics (messages 5055 through 5064):

Re: What's up with Cookies on Windows
        5055 by: adam
        5058 by: David Harrison

Sessions/security
        5056 by: Jan Walter
        5057 by: Ignatius Teo
        5064 by: Jan Walter

Relief
        5059 by: PHPWIN

best user authentication method?
        5060 by: Romulo Roberto Pereira

Addendum to the question: as a cgi version...
        5061 by: Romulo Roberto Pereira

Basic Clarification on Sessions(PHP4)
        5062 by: Mujahid Wazir

Re: passing windows username to apache
        5063 by: Dreamvale

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Joey Garcia <[EMAIL PROTECTED]> said:

> Warning: Cannot add header information - headers already sent by (output
> started at c:\program files\apache group\apache\htdocs\class\cookie.php:2)
> in c:\program files\apache group\apache\htdocs\class\cookie.php on line 3
> 
> <?php
> setcookie("myCookie","test",date("l, d-M-y H:i:s",
> (mktime()+1800)),"/","",0);
> ?>
> 
If the failing header is at line 3, then your PHP code block starts at line 
2. That means you have a blank line before it. That's output. And as you've 
already learned, you can't send output before SetCookie() or header()...

adam





I haven't tested it under windows, but theoretically you should be able to
set output_buffering=on in php.ini and ou should be able to send headers at
any time. 

--dave

> -----Original Message-----
> From: Joey Garcia [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 17 January 2001 4:59 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] What's up with Cookies on Windows
> 
> 
> I'm really surprised how difficult it is to get cookies to 
> work with PHP, I
> can't seem to get it to work and I've read all these posts 
> and other posts
> elsewhere and everyone says the same thing IT MUST BE THE 
> FIRST THING SENT.
> I have tried everything, what am I doing wrong???
> 
> 
> Any help would be much appreciated!!!!!
> 
> 
> I get this error message for the code below.
> 
> Warning: Cannot add header information - headers already sent 
> by (output
> started at c:\program files\apache 
> group\apache\htdocs\class\cookie.php:2)
> in c:\program files\apache 
> group\apache\htdocs\class\cookie.php on line 3
> 
> 
> <?php
> setcookie("myCookie","test",date("l, d-M-y H:i:s",
> (mktime()+1800)),"/","",0);
> ?>
> 
> <html>
> <head>
>  <title>Set A Cookie</title>
> </head>
> 
> <body>
> <h1>Cookie Test</h1>
> 
> </body>
> </html>
> 
> 
> 
> 
> -- 
> PHP Windows 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]
> 




Hi all,

I have the following questions concerning sessions/security/...:

-A-
Is there any way, how to handle, whether the user leaves my site? I
know, how to deny access, when user comes to my site from another for
the first time (after browser launch), or from another page of my site.
What I want is, to deny the access, when user logs into my system, then
leaves it without logging out and then goes back (via history, or
manually).

I know, I can erase history but it means, the user would not be able to
go back inside the system and it also does not solve the problem with
manual URL input.


-B-
How can I differenciate, which browser window on one computer is being
used. I'd like, for instance, enable the users to log in twice as
different users from 1 computer at simultaneously.

Thanx for any both hint and smile at my humble questions.
--
__________________________________________________________________________________________

==========================================================================================

Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
on emergency call cell phone: +420-602-385 760
work e-mail mailto:[EMAIL PROTECTED]
private e-mail mailto:[EMAIL PROTECTED]
ICQ#: 28353428
__________________________________________________________________________________________

==========================================================================================







SGF2ZSBhIGxvb2sgYXQgaHR0cDovL3BocGxpYi5uZXR1c2UuZGUNCg0KPiAtLS0tLU9yaWdpbmFs
IE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKYW4gV2FsdGVyIFttYWlsdG86am9obkBsZXJhY2guY3pd
DQo+IFNlbnQ6IFdlZG5lc2RheSwgMTcgSmFudWFyeSAyMDAxIDA5OjI1DQo+IFRvOiBQSFAgTWFp
bGluZyBsaXN0DQo+IFN1YmplY3Q6IFtQSFAtV0lOXSBTZXNzaW9ucy9zZWN1cml0eQ0KPiANCj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NlLCBlbmFibGUgdGhlIHVzZXJzIHRv
IGxvZyBpbiB0d2ljZSBhcw0KPiBkaWZmZXJlbnQgdXNlcnMgZnJvbSAxIGNvbXB1dGVyIGF0IHNp
bXVsdGFuZW91c2x5Lg0KPiANCj4gVGhhbnggZm9yIGFueSBib3RoIGhpbnQgYW5kIHNtaWxlIGF0
IG15IGh1bWJsZSBxdWVzdGlvbnMuDQo+IC0tDQo+IF9fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+IF9fX19fX19fX19fX19fX19f
X19fX19fX19fX18NCj4gDQo+ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09DQo+ID09PT09PT09PT09PT09PT09PT09PT09PT09PT0N
Cj4gDQo+IEphbiBXYWx0ZXIsIGNhbGxlZCBKb2huDQo+IExFUkFDSCwgcy5yLm8uDQo+IHBob25l
IG5yLiB3b3JrOiArNDIwLTItNzggMjIgNjE5LCBob21lOiArNDIwLTItMzUgMzUgMjcgNjENCj4g
b24gZW1lcmdlbmN5IGNhbGwgY2VsbCBwaG9uZTogKzQyMC02MDItMzg1IDc2MA0KPiB3b3JrIGUt
bWFpbCBtYWlsdG86SmFuLldhbHRlckBsZXJhY2guY3oNCj4gcHJpdmF0ZSBlLW1haWwgbWFpbHRv
OmpvaG5AbGVyYWNoLmN6DQo+IElDUSM6IDI4MzUzNDI4DQo+IF9fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+IF9fX19fX19fX19f
X19fX19fX19fX19fX19fX18NCj4gDQo+ID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQo+ID09PT09PT09PT09PT09PT09PT09PT09
PT09PT0NCj4gDQo+IA0KPiANCj4gDQo+IC0tIA0KPiBQSFAgV2luZG93cyBNYWlsaW5nIExpc3Qg
KGh0dHA6Ly93d3cucGhwLm5ldC8pDQo+IFRvIHVuc3Vic2NyaWJlLCBlLW1haWw6IHBocC13aW5k
b3dzLXVuc3Vic2NyaWJlQGxpc3RzLnBocC5uZXQNCj4gRm9yIGFkZGl0aW9uYWwgY29tbWFuZHMs
IGUtbWFpbDogcGhwLXdpbmRvd3MtaGVscEBsaXN0cy5waHAubmV0DQo+IFRvIGNvbnRhY3QgdGhl
IGxpc3QgYWRtaW5pc3RyYXRvcnMsIGUtbWFpbDogDQo+IHBocC1saXN0LWFkbWluQGxpc3RzLnBo
cC5uZXQNCj4g





Ignatius Teo wrote:

> Have a look at http://phplib.netuse.de

I am afraid it does not work as I described, because if I visit another
site, go back and refresh, everything seems ok.
--
__________________________________________________________________________________________

==========================================================================================

Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-782 28 02, home: +420-2-35 35 27 61
on emergency call: +420-602-385 760
work e-mail mailto:[EMAIL PROTECTED]
private e-mail mailto:[EMAIL PROTECTED]
ICQ#: 28353428
__________________________________________________________________________________________

==========================================================================================







Dear PHP guys
  Here's to the El Salvador Earthquake fund
Please have a heart...
https://www-secure.ifrc.org/donation/donate.asp


Also how do you pass parameters to a navigational bar like the one in this site?
And where do you get an Applet Code like this? Or Javascript version?





hello!

What is the best user authentication methd for linux (apache)? and for windows (IIS)? 




Hey! adding to the question above: as a cgi version what are the authentications 
methods available?




Hi,

I want to know if the sample implementation below of session variables is
correct.
I am going through the PHP4 Manual, but any clarification would be great

INDEX.PHP
<?
session_start();
$example = 1;
session_register("example") ;
?>

SOME OTHER PAGE
<?
session_start();
if (!isset($example)) {
    Header("Location: Index.php") ;
} ?>

I tried using session_is_registered() instead of isset but I am getting
errors, probably because of incorrect syntax. All I want is to redirect the
user back to the main page if the session is not set. Can anyone please show
me the right way.

Thanks
-Mujahid







the last time i did it with an OCX.


----- Original Message -----
From: "Matt Williams" <[EMAIL PROTECTED]>
To: "Php-Windows@Lists. Php. Net" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 7:56 PM
Subject: [PHP-WIN] passing windows username to apache


> HI all
>
> we're just considering setting up Apache/Linux for our intranet server. Is
> there any way that we can get the users windows logon username available
to
> the scripts on the intranet machine.
>
> TIA
>
> M@
>
>
> --
> PHP Windows 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]
>



Reply via email to