I am using session_start() at the beggining of script included to each page. Also I use the <?=SID?> in each link. But when the user comes for the first time to the page, the SID applies (each link on the page gets the ?PHPSESSID=....) even thought the user's browser accepts cookies. On following pages he/she browses the SID doesn't apply. Could you help me?
If you're just using <?=SID?>, then it's going to be printed out no matter what, because you tell it to. If you're looking for PHP to automatically attach SID to links, then you have to turn it on in your php.ini file...
---John Holmes...
Look at www.permonik.com When you come to the first page, each link has the PHPSESSID=.... printed because of the SID. You click on some of that links and at the second page no PHPSESSID is attached to any link (if your browser supports cookies). Question: Why the session id applies on links at the first page when your browser supports cookies? I don't want it to be printed in no case when the client's browser supports cookies.