Posted: Tue Jun 10, 2003 6:55 pm
Well, mikusan, I understand that if you set session.use_trans_id to 1 (that is, not 0, thus enabling it) or your web hoster imposes this setting, and you do not implement cookies, PHP will automatically pass on the PHPSESSID parameter from page to page.
It will add the PHPSESSID as a hidden value in each form in the script. If you move from one of your pages to another with a relative URL (staying within your site) and not a form, the PHPSESSID will be appended to the URL as follows: URL?PHPSESSID=[32 gobblygook characters].
Cookies are troublesome, unreliable and often resented by users. Appending to URL makes them look odd and does not provide for valid bookmarks. I have seen such URL in the hundreds of characters. Ugly.
Moving from page to page with the POST method and form buttons is the clean way to do it. Users interact with your script and the URL in their browser may hardly change. They can bookmark it at will as their re-entry later on will be acted upon by the PHP script, if it is smart enough.
To get to a pure HTML page from an PHP page, I implemented an intermediate PHP page that destroys the current session and redirects to the HTML page. This provides for a clean HTML URL with nothing appended.
I bother about the user experience. I bother about nasty cookie and bookmarks side effects. This is not a no-no...
It will add the PHPSESSID as a hidden value in each form in the script. If you move from one of your pages to another with a relative URL (staying within your site) and not a form, the PHPSESSID will be appended to the URL as follows: URL?PHPSESSID=[32 gobblygook characters].
Cookies are troublesome, unreliable and often resented by users. Appending to URL makes them look odd and does not provide for valid bookmarks. I have seen such URL in the hundreds of characters. Ugly.
Moving from page to page with the POST method and form buttons is the clean way to do it. Users interact with your script and the URL in their browser may hardly change. They can bookmark it at will as their re-entry later on will be acted upon by the PHP script, if it is smart enough.
To get to a pure HTML page from an PHP page, I implemented an intermediate PHP page that destroys the current session and redirects to the HTML page. This provides for a clean HTML URL with nothing appended.
I bother about the user experience. I bother about nasty cookie and bookmarks side effects. This is not a no-no...