RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Ford, Mike [LSS]
On 05 March 2004 03:33, Paul Higgins wrote:

 When I do:  print_r($_COOKIE); I get the following:
 Array ( [PHPSESSID] = 11781ce29c68ca7ef563110f37e43f38 )
 
 Does that mean its setting the Cookie?

Yes.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Jason Wong
On Friday 05 March 2004 13:05, Paul Higgins wrote:
 When I thought about what the compay really told me...it didn't make sense.
 All I know is that that cookie will not save on my WinXP box, but it will
 save on my Linux box.

As sending cookies is pretty much a generic procedure which is not platform 
dependent it would suggest that your WinXP box is broken (needless to say I'm 
assuming that you have already ensured that your browser is configured to 
accept cookies). Have you tried any other browsers/platforms?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All vacations and holidays create problems, except for one's own
-- Murphy's Laws on Work n34
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread electroteque
 but it will
 save on my Linux box.

As sending cookies is pretty much a generic procedure which is not platform 
dependent it would suggest that your WinXP box is broken (needless to say I'm 
assuming that you have already ensured that your browser is configured to 
accept cookies). Have you tried any other browsers/platforms?

The above snippet means it works on  his linux box which is why i suggested to see if 
the session is storing in /tmp, he could prob have spyware running on his machine, i 
advice check out adaware.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a print_r
($_COOKIE); aswell.


 Hi everyone,

 I'm trying to create a session with PHP.  I'm using the following code:

 ?php
session_start( );

print( session_id( ) );

print( 'HTML');
print( 'BODY' );
print( '   a href =
 http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
print( '/BODY' );
print( '/HTML' );
 ?

 Now, I'm trying to view this site on a WinXP box.  However, the cookies
 are  not being saved onto my machine.  I've viewed the site with
 Mozilla on a  Linux box, and it works fine.  What could be wrong?  Any
 help would be  greatly appreciated.

 I read somewhere that PHP had some issues with writing cookies to an
 NTFS  box.  Could that have anything to do with it?

 Thanks,

 Paul

 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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



Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
When I do:  print_r($_COOKIE); I get the following:
Array ( [PHPSESSID] = 11781ce29c68ca7ef563110f37e43f38 )
Does that mean its setting the Cookie?  I can't see the cookie on my 
computer.  I don't have cookies disabled because I'm getting cookies from 
other sites.  The privacy setting is set to Medium.

Thanks,

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a 
print_r
($_COOKIE); aswell.

 Hi everyone,

 I'm trying to create a session with PHP.  I'm using the following code:

 ?php
session_start( );

print( session_id( ) );

print( 'HTML');
print( 'BODY' );
print( 'a href =
 http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
print( '/BODY' );
print( '/HTML' );
 ?

 Now, I'm trying to view this site on a WinXP box.  However, the cookies
 are  not being saved onto my machine.  I've viewed the site with
 Mozilla on a  Linux box, and it works fine.  What could be wrong?  Any
 help would be  greatly appreciated.

 I read somewhere that PHP had some issues with writing cookies to an
 NTFS  box.  Could that have anything to do with it?

 Thanks,

 Paul

 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
AAAGGGH!!

I asked my hosting company where they were stored...on the server...I am so 
mad at myself...all that time wasted.  Thanks for the help though...it was 
much appreciated!

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
Are the hosts u looking at the same ? Like is it the very same link ? Check
on the XP box if you have cookies disabled, u can always check if the
session is being stored on the server too, look in /tmp first. Try a 
print_r
($_COOKIE); aswell.

 Hi everyone,

 I'm trying to create a session with PHP.  I'm using the following code:

 ?php
session_start( );

print( session_id( ) );

print( 'HTML');
print( 'BODY' );
print( 'a href =
 http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
print( '/BODY' );
print( '/HTML' );
 ?

 Now, I'm trying to view this site on a WinXP box.  However, the cookies
 are  not being saved onto my machine.  I've viewed the site with
 Mozilla on a  Linux box, and it works fine.  What could be wrong?  Any
 help would be  greatly appreciated.

 I read somewhere that PHP had some issues with writing cookies to an
 NTFS  box.  Could that have anything to do with it?

 Thanks,

 Paul

 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Is it a non default /tmp ? If so it should be in php.ini or u have to set
where it is with an ini_set , hope that helps.

 AAAGGGH!!

 I asked my hosting company where they were stored...on the server...I
 am so  mad at myself...all that time wasted.  Thanks for the help
 though...it was  much appreciated!

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Are the hosts u looking at the same ? Like is it the very same link ?
Check on the XP box if you have cookies disabled, u can always check if
the session is being stored on the server too, look in /tmp first. Try
a  print_r
($_COOKIE); aswell.


  Hi everyone,
 
  I'm trying to create a session with PHP.  I'm using the following
  code:
 
  ?php
 session_start( );
 
 print( session_id( ) );
 
 print( 'HTML');
 print( 'BODY' );
 print( 'a href =
  http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
 print( '/BODY' );
 print( '/HTML' );
  ?
 
  Now, I'm trying to view this site on a WinXP box.  However, the
  cookies are  not being saved onto my machine.  I've viewed the site
  with Mozilla on a  Linux box, and it works fine.  What could be
  wrong?  Any help would be  greatly appreciated.
 
  I read somewhere that PHP had some issues with writing cookies to an
  NTFS  box.  Could that have anything to do with it?
 
  Thanks,
 
  Paul
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  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


 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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



Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
If there is something in $_COOKIE, what does that mean?  That there is a 
cookie somewhere?  Or is it appending the Session ID to the URL?

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)
Is it a non default /tmp ? If so it should be in php.ini or u have to set
where it is with an ini_set , hope that helps.
 AAAGGGH!!

 I asked my hosting company where they were stored...on the server...I
 am so  mad at myself...all that time wasted.  Thanks for the help
 though...it was  much appreciated!

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Are the hosts u looking at the same ? Like is it the very same link ?
Check on the XP box if you have cookies disabled, u can always check if
the session is being stored on the server too, look in /tmp first. Try
a  print_r
($_COOKIE); aswell.


  Hi everyone,
 
  I'm trying to create a session with PHP.  I'm using the following
  code:
 
  ?php
 session_start( );
 
 print( session_id( ) );
 
 print( 'HTML');
 print( 'BODY' );
 print( '   a href =
  http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
 print( '/BODY' );
 print( '/HTML' );
  ?
 
  Now, I'm trying to view this site on a WinXP box.  However, the
  cookies are  not being saved onto my machine.  I've viewed the site
  with Mozilla on a  Linux box, and it works fine.  What could be
  wrong?  Any help would be  greatly appreciated.
 
  I read somewhere that PHP had some issues with writing cookies to an
  NTFS  box.  Could that have anything to do with it?
 
  Thanks,
 
  Paul
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  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


 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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
_
Get a FREE online computer virus scan from McAfee when you click here. 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Ahh is it showing in the url ? Usually it stores as a cookie, or via url, i
think that is also set in php.ini, someone want to ellaborate here ?

 If there is something in $_COOKIE, what does that mean?  That there is
 a  cookie somewhere?  Or is it appending the Session ID to the URL?

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)

Is it a non default /tmp ? If so it should be in php.ini or u have to
set where it is with an ini_set , hope that helps.

  AAAGGGH!!
 
  I asked my hosting company where they were stored...on the
  server...I am so  mad at myself...all that time wasted.  Thanks for
  the help though...it was  much appreciated!
 
  Paul
 
 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
 Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)
 
 Are the hosts u looking at the same ? Like is it the very same link
 ? Check on the XP box if you have cookies disabled, u can always
 check if the session is being stored on the server too, look in /tmp
 first. Try a  print_r
 ($_COOKIE); aswell.
 
 
   Hi everyone,
  
   I'm trying to create a session with PHP.  I'm using the following
   code:
  
   ?php
  session_start( );
  
  print( session_id( ) );
  
  print( 'HTML');
  print( 'BODY' );
  print( ' a href =
   http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
  print( '/BODY' );
  print( '/HTML' );
   ?
  
   Now, I'm trying to view this site on a WinXP box.  However, the
   cookies are  not being saved onto my machine.  I've viewed the
   site with Mozilla on a  Linux box, and it works fine.  What could
   be wrong?  Any help would be  greatly appreciated.
  
   I read somewhere that PHP had some issues with writing cookies to
   an NTFS  box.  Could that have anything to do with it?
  
   Thanks,
  
   Paul
  
   _
   FREE pop-up blocking with the new MSN Toolbar – get it now!
   http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
  
   --
   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
 
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  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


 _
 Get a FREE online computer virus scan from McAfee when you click here.
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

 --
 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



Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
When I thought about what the compay really told me...it didn't make sense.  
All I know is that that cookie will not save on my WinXP box, but it will 
save on my Linux box.

Are there any special headers that I could use?

Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST)
Is it a non default /tmp ? If so it should be in php.ini or u have to set
where it is with an ini_set , hope that helps.
 AAAGGGH!!

 I asked my hosting company where they were stored...on the server...I
 am so  mad at myself...all that time wasted.  Thanks for the help
 though...it was  much appreciated!

 Paul


From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Sessions - Cookies Not Saving
Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST)

Are the hosts u looking at the same ? Like is it the very same link ?
Check on the XP box if you have cookies disabled, u can always check if
the session is being stored on the server too, look in /tmp first. Try
a  print_r
($_COOKIE); aswell.


  Hi everyone,
 
  I'm trying to create a session with PHP.  I'm using the following
  code:
 
  ?php
 session_start( );
 
 print( session_id( ) );
 
 print( 'HTML');
 print( 'BODY' );
 print( '   a href =
  http://www.mysite.com/shopping_cart/Test2.php;Here/a' );
 print( '/BODY' );
 print( '/HTML' );
  ?
 
  Now, I'm trying to view this site on a WinXP box.  However, the
  cookies are  not being saved onto my machine.  I've viewed the site
  with Mozilla on a  Linux box, and it works fine.  What could be
  wrong?  Any help would be  greatly appreciated.
 
  I read somewhere that PHP had some issues with writing cookies to an
  NTFS  box.  Could that have anything to do with it?
 
  Thanks,
 
  Paul
 
  _
  FREE pop-up blocking with the new MSN Toolbar – get it now!
  http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/
 
  --
  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


 _
 FREE pop-up blocking with the new MSN Toolbar – get it now!
 http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

 --
 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
_
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP and Cookies

2003-04-03 Thread John W. Holmes
 I have a problem with php and cookies.  I use the following line of
code
 to set a cookie to expire in one year:
 

setcookie('gsp_email',$_POST['requiredsubEmail'],time()*60*60*24*365
 ,'/','',0);
 
 The idea is that the cookie will sit on the client for a year, so that
a
 visitor only has to submit their email address once.
 
 However, when I close up all browser windows, then reload the browser
(I'm
 using IE 6), the cookie doesn't seem to 'stick'.. I'm once again asked
for
 my email address even though I already entered it and set the cookie.

If you set your cookie settings to prompt do you receive the cookie?
How are you checking for it later, to decide whether or not to prompt
for an email?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP and cookies and/or headers

2001-02-16 Thread Paul Grant

Jeremy,
I think there might be a JavaScript solution rather than a PHP solution to
your problem.
Depending on which link, either www.english.com or www.francais.com, the
users click from www.mainurl.com  you can set a cookie with JavaScript.
Of course this cookie will 'remember' the user's initial language choice not
the language of the page they finished on, but if the users don't swapping
over and back between languages this shouldn't be a problem.
Also as JavaScript is a client-side scripting language, which can be
switched off, it is not 100% reliable but then neither are cookies!
Paul Grant

 -Original Message-
 From: Jeremy Gillies [SMTP:[EMAIL PROTECTED]]
 Sent: 15 February 2001 21:54
 To:   '[EMAIL PROTECTED]'
 Subject:  [PHP] PHP and cookies and/or headers
 
 Greetings,
 
 Is anyone REALLY familiar with PHP and cookies and/or headers-- I have a
 tough nut to crack and it involves three URLs.
 
 Here is the situation, and I really want to avoid using our DB if I can.
 
 I have a main URL that everyone will probably hit - splash page.
 www.mainurl.com
 
 From there, users go into either the french or english version of the site
 with two unique URLs...
 
 www.english.com
 www.francais.com
 
 I want it so that if users go back to the splash page, it will pick up
 their
 language preference (french or english) and send them to the index page of
 either www.english.com or www.francais.com -- depending upon the last
 argument set when they were last at the site. So, if they ended on an
 english page, they would start at the english index page, but if the
 finished on a french page, they would start on the french index page.
 
 The problem with cookies is the fixed URL from which they can be read.
 Obviously www.mainurl.com cannot read a cookie set by www.francais.com --
 so
 how can I over come this.
 
 I suppose I could do it via IP stored in a DB, but even then there is a
 problem as people who hide behind one IP -- say a large business -- 
 would be stuck using each others' preferences depending upon who used the
 site last.
 
 I also do not want the user to have to type in a code word so that the
 IP is tagged with a special identifier. I suppose I could use a random
 number generated from a time stamp... but I really want to avoid using a
 DB!
 -- mostly for speed and bloat of page size reasons.
 
 Thanks in advance!
 Jeremy
 
 -- 
 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]


The information contained in this e-mail is confidential, 
may be privileged and is intended only for the use of the 
recipient named above. If you are not the intended 
recipient or a representative of the intended recipient, 
you have received this e-mail in error and must not copy, 
use or disclose the contents of this email to anybody 
else. If you have received this e-mail in error, please 
notify the sender immediately by return e-mail and 
permanently delete the copy you received. This email has 
been swept for computer viruses. However, you should 
carry out your own virus checks. 


Registered in Ireland, No. 205721. http://www.FINEOS.com 

-- 
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]