httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Burden" <...@Burden.ca>
Subject Re: [users@httpd] Please Help With Cookies
Date Sun, 30 May 2004 20:24:40 GMT
Sure, why not? You'll have to use TCP/IP rather than the Unix socket, I
presume, but sure.

----- Original Message ----- 
From: "Barth (John) Jones" <musicbybarth@alltel.net>
To: <users@httpd.apache.org>
Sent: Sunday, May 30, 2004 4:11 PM
Subject: Re: [users@httpd] Please Help With Cookies


> OK, thanks, but will MySQL and PHPMyAdmin work properly with both of them
> installed on the same Windows XP platform?  Thanks.
>
> ----- Original Message ----- 
> From: "Tim Burden" <Tim@Burden.ca>
> To: <users@httpd.apache.org>
> Sent: Sunday, May 30, 2004 3:42 PM
> Subject: Re: [users@httpd] Please Help With Cookies
>
>
> > I don't use apache or mysql on Windows, but I don't think there's
anything
> > in the phpMyAdmin code that would prevent it from working perfectly well
> on
> > Windows.
> >
> > ----- Original Message ----- 
> > From: "Barth (John) Jones" <musicbybarth@alltel.net>
> > To: <users@httpd.apache.org>
> > Sent: Sunday, May 30, 2004 3:38 PM
> > Subject: Re: [users@httpd] Please Help With Cookies
> >
> >
> > > Hello Tim.  I had been exchanging questions with Ryan Schefke about
> > > server-side programming and he had to step away.  I'm wondering about
> > > compatibility of PHPMyAdmin and MySQL on the same Windows XP Pro
> platform.
> > > Do you know of any issues in this area?
> > >
> > > Thanks
> > >
> > > Barth Jones
> > > ----- Original Message ----- 
> > > From: "Tim Burden" <Tim@Burden.ca>
> > > To: <users@httpd.apache.org>
> > > Sent: Sunday, May 30, 2004 1:42 PM
> > > Subject: Re: [users@httpd] Please Help With Cookies
> > >
> > >
> > > > It means what it says. Apache doesn't have permission to write in
the
> > > > directory owned by the ftp user (you). chmod the dir 777.
> > > >
> > > > ----- Original Message ----- 
> > > > From: "Ryan Schefke" <ryanschefke@triomfgroup.com>
> > > > To: <users@httpd.apache.org>
> > > > Sent: Sunday, May 30, 2004 1:37 PM
> > > > Subject: RE: [users@httpd] Please Help With Cookies
> > > >
> > > >
> > > > > Okay Tim, I REALLY appreciate your help.
> > > > >
> > > > > If you're up for it, I have yet another challenge (using mkdir()
> > > function
> > > > > that worked fine on my local (windows) machine and now gives me
> error
> > > > below
> > > > > on hosted (linux) machine.
> > > > >
> > > > > Warning: mkdir() failed (Permission denied) in
> > > > > /home/httpd/vhosts/tgwedding.com/httpdocs/tgwedding/signup.php on
> line
> > > 136
> > > > >
> > > > > I don't want to bother you so don't worry about it if I am
bothering
> > > you.
> > > > > Some people like the challenge...me too, I'm just a bit
frustrated.
> > > > >
> > > > > Ryan
> > > > >
> > > > > -----Original Message-----
> > > > > From: Tim Burden [mailto:Tim@Burden.ca]
> > > > > Sent: Sunday, May 30, 2004 1:32 PM
> > > > > To: users@httpd.apache.org
> > > > > Subject: Re: [users@httpd] Please Help With Cookies
> > > > >
> > > > > If you don't need the cookie to last longer than the session, it
> might
> > > be
> > > > > worth using sessions instead. See if that gets through your
> firewall.
> > As
> > > > far
> > > > > as I know there's little difference between setting a session
> variable
> > > and
> > > > > setting a transient cookie...it's all just stuff in the headers
> going
> > > back
> > > > > and forth.
> > > > >
> > > > > As to why your firewall would do that...dunno. I don't use one.
> Maybe
> > it
> > > > > sets your browser's security level higher when it's on.
> > > > >
> > > > > ----- Original Message ----- 
> > > > > From: "Ryan Schefke" <ryanschefke@triomfgroup.com>
> > > > > To: <users@httpd.apache.org>; <jeffrey_n_Dyke@Keane.com>;
> > > <Tim@Burden.ca>
> > > > > Sent: Sunday, May 30, 2004 1:17 PM
> > > > > Subject: RE: [users@httpd] Please Help With Cookies
> > > > >
> > > > >
> > > > > > Tim,
> > > > > >
> > > > > > Thanks, you seem very knowledgeable on the subject.
> > > > > >
> > > > > > Now, this is bizarre.  I was using Zone Alarm Pro (firewall)
when
> I
> > > the
> > > > > > cookies were not being set on the Linux box.  Then, I closed
down
> > the
> > > > > > firewall and ran the script...much to my surprise and
> embarrassment,
> > > it
> > > > > > worked.
> > > > > >
> > > > > > Then, I reopened the firewall and continued to run the script.
It
> > > also
> > > > > > worked okay then.
> > > > > >
> > > > > > I have no explanation for why this happened, any ideas?
> > > > > >
> > > > > > Can a firewall on the client PC affect cookies in some way?
Would
> I
> > > > have
> > > > > > been better off programming in php using sessions to avoid these
> > > issues?
> > > > > >
> > > > > > Thanks Tim!
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Tim Burden [mailto:Tim@Burden.ca]
> > > > > > Sent: Sunday, May 30, 2004 1:12 PM
> > > > > > To: users@httpd.apache.org
> > > > > > Subject: Re: [users@httpd] Please Help With Cookies
> > > > > >
> > > > > > By the way, the $_COOKIE array *should* be empty on the
phpinfo()
> > page
> > > > > after
> > > > > > visiting the poll page, because the default path of a cookie
is
> the
> > > > > current
> > > > > > directory, i.e. the directory the cookie is being set in..
> > > > > >
> > > > > >
> > > > > > ----- Original Message ----- 
> > > > > > From: "Ryan Schefke" <ryanschefke@triomfgroup.com>
> > > > > > To: <users@httpd.apache.org>; <Tim@Burden.ca>
> > > > > > Sent: Sunday, May 30, 2004 12:45 PM
> > > > > > Subject: RE: [users@httpd] Please Help With Cookies
> > > > > >
> > > > > >
> > > > > > > Tim,
> > > > > > >
> > > > > > > Thanks for jumping in. Could you delete cookies in your
browser,
> > > close
> > > > > > your
> > > > > > > browser, open it back up and try the script on the Linux
box:
> > > > > > > http://www.tgwedding.com/tgwedding/themes/orangerose/poll.php
> > > > > > >
> > > > > > > I'm wondering if the cookies were set successfully on the
> windows
> > > box
> > > > > then
> > > > > > > assumed to be set when you ran the script on the Linux
box.
> > > > > > >
> > > > > > > Please let me know if it let you vote again.
> > > > > > >
> > > > > > > Ryan
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Tim Burden [mailto:Tim@Burden.ca]
> > > > > > > Sent: Sunday, May 30, 2004 12:37 PM
> > > > > > > To: users@httpd.apache.org
> > > > > > > Subject: Re: [users@httpd] Please Help With Cookies
> > > > > > >
> > > > > > > Hmm...they both are behaving exactly the same for me. I.e.
I
go
> to
> > > the
> > > > > > poll
> > > > > > > page, I vote, I'm not allowed to vote any more, etc. then
I go
> to
> > > the
> > > > > > > phpinfo() page and the array is empty...both on your Win
box
and
> > > your
> > > > RH
> > > > > > > box.
> > > > > > >
> > > > > > > Looks like you're behind a firewall for the Windows box.
That
> > might
> > > be
> > > > > an
> > > > > > > important point.
> > > > > > >
> > > > > > > ----- Original Message ----- 
> > > > > > > From: "Ryan Schefke" <ryanschefke@triomfgroup.com>
> > > > > > > To: <jeffrey_n_Dyke@Keane.com>; <users@httpd.apache.org>
> > > > > > > Sent: Sunday, May 30, 2004 12:11 PM
> > > > > > > Subject: RE: [users@httpd] Please Help With Cookies
> > > > > > >
> > > > > > >
> > > > > > > > Hi Jeff,
> > > > > > > >
> > > > > > > > You seem very helpful so let me explain in detail.
 Please
let
> > me
> > > > know
> > > > > > if
> > > > > > > I
> > > > > > > > can e-mail you my "poll.php" script.
> > > > > > > >
> > > > > > > > Again, it works fine on one box and not on the other.
 You
can
> > see
> > > > the
> > > > > > > > version of Apache/MySQL/PHP from the files below.
> > > > > > > >
> > > > > > > > Note, I REALLY want to avoid switching register_global
to
off
> > > since
> > > > I
> > > > > > have
> > > > > > > > 100's of pages of php code written already with
> register_global
> > > on.
> > > > > All
> > > > > > my
> > > > > > > > forms etc. use the short form of variables.  It would
be
> brutal
> > if
> > > I
> > > > > had
> > > > > > > to
> > > > > > > > redo everything. Again, it works find on the windows
machine
> but
> > > not
> > > > > > when
> > > > > > > I
> > > > > > > > transitioned my code to the linux box.
> > > > > > > >
> > > > > > > > On working Windows Machine (cookies working):
> > > > > > > > =========================================
> > > > > > > > 1 - The below link contains the following code after
script
> > > > executed:
> > > > > > > >
> > > http://samserver.sytes.net:8080/tgwedding/themes/orangerose/poll.php
> > > > > > > >
> > > > > > > > <?php
> > > > > > > > var_dump($_COOKIE);
> > > > > > > > echo phpinfo();
> > > > > > > > ?>
> > > > > > > > http://samserver.sytes.net:8080/tgwedding/phpinfo.php
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Linux Machine (cookies not working):
> > > > > > > > ========================================
> > > > > > > > 1 - The below link contains the following code after
script
> > > > executed:
> > > > > > > >
http://www.tgwedding.com/tgwedding/themes/orangerose/poll.php
> > > > > > > >
> > > > > > > > <?php
> > > > > > > > var_dump($_COOKIE);
> > > > > > > > echo phpinfo();
> > > > > > > > ?>
> > > > > > > > http://www.tgwedding.com/tgwedding/phpinfo.php
> > > > > > > >
> > > > > > > >
> > > > > > > > Now, what is really weird is that I can write a simple
script
> > and
> > > > > > > set/write
> > > > > > > > a cookie on the linux machine.  For example, this
script,
> > > > > > > > http://www.tgwedding.com/tgwedding/phpinfo3.php
> > > > > > > >
> > > > > > > > Contains the code:
> > > > > > > > <?php
> > > > > > > > setcookie ("test2_ck", "7"); //
> > > > > > > > setcookie ("test_ck", "10"); //
> > > > > > > > header ('Location: phpinfo2.php');
> > > > > > > > ?>
> > > > > > > >
> > > > > > > > And phpinfo2.php (where it's redirected) contains
this code:
> > > > > > > > <?php
> > > > > > > > echo $test2_ck; //
> > > > > > > > echo $test_ck; //
> > > > > > > > ?>
> > > > > > > >
> > > > > > > > WHICH WORKS.
> > > > > > > >
> > > > > > > > I'M TOTALLY CONFUSED, PLEASE HELP.  My application
is
> worthless
> > > > > without
> > > > > > > this
> > > > > > > > fix.
> > > > > > > >
> > > > > > > > Thanks a lot,
> > > > > > > > Ryan
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: jeffrey_n_Dyke@Keane.com
> [mailto:jeffrey_n_Dyke@Keane.com]
> > > > > > > > Sent: Sunday, May 30, 2004 11:18 AM
> > > > > > > > To: users@httpd.apache.org
> > > > > > > > Cc: 'Ryan Schefke'; Apache Discussion List
> > > > > > > > Subject: Re: [users@httpd] Please Help With Cookies
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello,
> > > > > > > >
> > > > > > > > >My code containing cookies running on windows
with a
working
> > > Apache
> > > > > and
> > > > > > > > Php installation executed all scripts containing cookies
> > > perfectly.
> > > > > > > > However, I >transitioned my code to a Linux box
with a fresh
> > > install
> > > > > of
> > > > > > > PHP
> > > > > > > > and Apache and now my cookies aren't working.  Below
is an
> > example
> > > > of
> > > > > > > > setting and writing >cookie values from one script.
 Again,
> > > > everything
> > > > > > > > worked like a charm on my old machine.  That's why
I think
it
> > has
> > > > > > > something
> > > > > > > > to do with the Apache or PHP >installation settings.
> > > > > > > >
> > > > > > > > You forgot to include the code.  What version of PHP
are you
> > > running
> > > > > on
> > > > > > > > each machine? Are you using $_COOKIE['cookiename']
or
> > $cookiename?
> > > > if
> > > > > > the
> > > > > > > > latter, try the former.  can you write a small script
to set
a
> > > > cookie
> > > > > > and
> > > > > > > > display its value on the linux box? what does
> var_dump($_COOKIE)
> > > > show?
> > > > > > > >
> > > > > > > > HTH
> > > > > > > > Jeff
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > > > > The official User-To-User support forum of the Apache
HTTP
> > Server
> > > > > > Project.
> > > > > > > > See <URL:http://httpd.apache.org/userslist.html>
for more
> info.
> > > > > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > > > > >    "   from the digest:
> > users-digest-unsubscribe@httpd.apache.org
> > > > > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > The official User-To-User support forum of the Apache HTTP
> Server
> > > > > Project.
> > > > > > > See <URL:http://httpd.apache.org/userslist.html>
for more
info.
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > > > >    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> > > > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > > The official User-To-User support forum of the Apache HTTP
> Server
> > > > > Project.
> > > > > > > See <URL:http://httpd.apache.org/userslist.html>
for more
info.
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > > > >    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> > > > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > The official User-To-User support forum of the Apache HTTP
Server
> > > > Project.
> > > > > > See <URL:http://httpd.apache.org/userslist.html> for more
info.
> > > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > > >    "   from the digest:
users-digest-unsubscribe@httpd.apache.org
> > > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > The official User-To-User support forum of the Apache HTTP
Server
> > > > Project.
> > > > > > See <URL:http://httpd.apache.org/userslist.html> for more
info.
> > > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > > >    "   from the digest:
users-digest-unsubscribe@httpd.apache.org
> > > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > The official User-To-User support forum of the Apache HTTP Server
> > > Project.
> > > > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > The official User-To-User support forum of the Apache HTTP Server
> > > Project.
> > > > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > > For additional commands, e-mail: users-help@httpd.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message