[PHP] Dumb session cookie question?

2002-12-08 Thread Douglas Douglas
Hi all.
I'm sorry about the dumb question, but I've just
expend two hours trying to find the damn cookie and I
couldn't :(
I've read that when you use sessions and configure the
php.ini with session.use_cookies = 1, your sessions
will always send cookies to the client (if the client
accept the cookies)...
Is that right?
I ask because I'm reading my first tutorial about
sessions and it worked fine... but I can't find where
IE6 (Windows XP, Apache 1.3.27) stores those cookies I
used... I want to see the cookie's contents...
So I was wondering if PHP really sends the cookies,
but I also printed the $_SESSION and $_COOKIE arrays
and it displayed the correct information... in
$_COOKIE displayed PHPSESSID == , so I
think there is some cookie somewhere, my question is
where is it?
I'm so confused right now...
Thanks for any help. Sorry again.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Justin French
if you are allowing cookies on your browser, and the sessions are working
(as they appear to be), then there WILL be a cookie somewhere on your
browsing computer.

However, I think you're a little confused about what you'll find... you'll
just find a cookie named PHPSESSID, with a value of XX.

A common misconception about sessions is that the session vars get stored on
the user's computer... WRONG.  ONLY the session id is stored on the user's
computer (either in a cookie, or via the URL).  Session vars and values are
ASSOCIATED with that session id ON THE SERVER.

WHERE exactly the cookie is stored on your CLIENT (viewing) hard drive will
depend on the OS, Browser, and a heap of settings.

WHERE exactly the session vars and values are stored on your SERVER will
depend on a few PHP settings.


What are you trying to achieve?  To test if a cookie exists on the user's
computer, you use the $_COOKIE array.  To assign values to a session, you
use the $_SESSION array (which associates a php session id (stored/carried
by the user) with a bunch of session vars/values stored on the server).


Justin



on 08/12/02 10:17 PM, Douglas Douglas ([EMAIL PROTECTED]) wrote:

 Hi all.
 I'm sorry about the dumb question, but I've just
 expend two hours trying to find the damn cookie and I
 couldn't :(
 I've read that when you use sessions and configure the
 php.ini with session.use_cookies = 1, your sessions
 will always send cookies to the client (if the client
 accept the cookies)...
 Is that right?
 I ask because I'm reading my first tutorial about
 sessions and it worked fine... but I can't find where
 IE6 (Windows XP, Apache 1.3.27) stores those cookies I
 used... I want to see the cookie's contents...
 So I was wondering if PHP really sends the cookies,
 but I also printed the $_SESSION and $_COOKIE arrays
 and it displayed the correct information... in
 $_COOKIE displayed PHPSESSID == , so I
 think there is some cookie somewhere, my question is
 where is it?
 I'm so confused right now...
 Thanks for any help. Sorry again.
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

Justin French

http://Indent.com.au
Web Development  
Graphic Design



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




Re: [PHP] Dumb session cookie question?

2002-12-08 Thread Robert Pruitt
IE traditionally puts cookies in a folder named Cookies.

Do a search for 'cookies' -- see what you come up with.


on 08/12/02 10:17 PM, Douglas Douglas ([EMAIL PROTECTED]) wrote:

 

Hi all.
I'm sorry about the dumb question, but I've just
expend two hours trying to find the damn cookie and I
couldn't :(
I've read that when you use sessions and configure the
php.ini with session.use_cookies = 1, your sessions
will always send cookies to the client (if the client
accept the cookies)...
Is that right?
I ask because I'm reading my first tutorial about
sessions and it worked fine... but I can't find where
IE6 (Windows XP, Apache 1.3.27) stores those cookies I
used... I want to see the cookie's contents...
So I was wondering if PHP really sends the cookies,
but I also printed the $_SESSION and $_COOKIE arrays
and it displayed the correct information... in
$_COOKIE displayed PHPSESSID == , so I
think there is some cookie somewhere, my question is
where is it?
I'm so confused right now...
Thanks for any help. Sorry again.
   



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