You're correct about sessions. Using the PHPSESSID variable, you can do it all
server-side. When enable_trans_sid is enabled, all links should automatically have it
appended. The only thing you need to add is in all forms you must add a hidden field
with the PHPSESSID.
I don't see anything wrong in your configuration. You should just try a test page..
<?php
session_start();
$foo = 'bar';
session_register('foo');
?>
<html><body>
<a href="index.php">Test link</a>
</body></html>
The link should have the PHPSESSID auto-appended when you load the page.
-Mike
At 10:09 PM 10/4/2001 +0800, you wrote:
> I have used PHP4 Session in my application but if the client's browser
> disables cookie, the application will not work.
>
> However, session is a server-side implementation and not related to
>cookie.
> Does anybody know how to configure and implement with session in PHP4?
>
> the following is my configuration in php.ini, is it any wrong configure?
>
> [Session]
> ; Whether to use cookies.
> session.use_cookies = 0
>
> ; Name of the session (used as cookie name).
> session.name = PHPSESSID
>
> ; Initialize session on request startup.
> session.auto_start = 1
>
> ; use transient sid support if enabled by compiling
>with --enable-trans-sid.
> session.use_trans_sid = 1
>
>
>
>--
>PHP Windows 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]
-=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood *
...maintaining lawns, watching televised sports, birthing
children, listening to Top 40 music, and collecting
stuffed animals...
--
PHP Windows 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]