Re: [PHP] Cookies disabled, new session ID each click!

2002-11-03 Thread Steve Fatula
Not using trans_sid, but it is set for this example and it doesn't 
matter either way, intentionally putting the SID on the link myself, 
this is the way the vendor software is set up. So, I want someone to run 
this example, and see if it works for them, and if it does, what might 
be the reason it does not work for me?

Steve

Chris Shiflett wrote:

Steve,

Check your php.ini file. PHP uses cookies for maintaining your Web 
client's unique ID, and unless you have use_trans_sid set, it will not 
attempt to pass the unique ID on the URL for those who have cookies 
disabled.

Chris

Steve Fatula wrote:

When you click on the link in the code, it gives you a session ID. 
Then, when you click again, it goes away. The SID appears to be blank 
every other time.

Why would that be? I am using PHP 4.2.0 and 4.2.2, BSD and Linux, and 
Apache 1.3.20 something. Two different hosts. Same result. Client is 
IE5.5 with cookies disabled, running on NT.






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




[PHP] Cookies disabled, new session ID each click!

2002-11-02 Thread Steve Fatula
I posted this but not sure Google works, so using my own account as it 
did not show up yet.

I am fairly new to PHP, and am running a shopping cart app written in 
PHP. Most people using this cart do not have this issue, but I do!

I have boiled the program down to a few lines, and it doesn't work. When 
you click on the link in the code, it gives you a session ID. Then, when 
you click again, it goes away. The SID appears to be blank every other time.

Why would that be? I am using PHP 4.2.0 and 4.2.2, BSD and Linux, and 
Apache 1.3.20 something. Two different hosts. Same result. Client is 
IE5.5 with cookies disabled, running on NT. New session file is 
generated even though one already existed. This happens every other 
click as SID is blank every other click.

Please help me understand what the issue is.

Steve

?php
session_name('Steve');
session_start();
?
!doctype html public -//W3C//DTD HTML 4.01 Transitional//EN
html
head
meta http-equiv=Content-Type content=text/html
titleTest Page/title
/head
body marginwidth=0 marginheight=0 topmargin=0 bottommargin=0 
leftmargin=0 rightmargin=0
?php echo 'a href=http://linux.office.home/catalog/default_test.php?' 
. SID . 'link to me/a'; ?
/body
/html



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



Re: [PHP] Cookies disabled, new session ID each click!

2002-11-02 Thread Chris Shiflett
Steve,

Check your php.ini file. PHP uses cookies for maintaining your Web 
client's unique ID, and unless you have use_trans_sid set, it will not 
attempt to pass the unique ID on the URL for those who have cookies 
disabled.

Chris

Steve Fatula wrote:

When you click on the link in the code, it gives you a session ID. 
Then, when you click again, it goes away. The SID appears to be blank 
every other time.

Why would that be? I am using PHP 4.2.0 and 4.2.2, BSD and Linux, and 
Apache 1.3.20 something. Two different hosts. Same result. Client is 
IE5.5 with cookies disabled, running on NT.



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