Re: problem of php4 session
| From: | Mike Flynn | Date: | Thu, 04 Oct 2001 15:11:52 +0000 |
| Subject: | Re: problem of php4 session | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9689@lists.php.net to get a copy of this message | ||
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: php-windows-unsubscribe@lists.php.net
>For additional commands, e-mail: php-windows-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
-=- Mike Flynn - Burlington, VT -=-
mike@mikeflynn.net http://www.mikeflynn.net/ * Give blood
*
...maintaining lawns, watching televised sports, birthing
children, listening to Top 40 music, and collecting
stuffed animals...