Re: Custom Session usind MySQL
| From: | Greg Donald | Date: | Wed, 19 Nov 2003 05:02:31 +0000 |
| Subject: | Re: Custom Session usind MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170241@lists.php.net to get a copy of this message | ||
On Wed, 19 Nov 2003, Manisha Sathe wrote:
>I want the session to be accessed from different websites, so i got the
>answer in this forum only to make use of customised session with mysql.
>
>I searched the web and came to know that 'session.save_handler' of php.ini
>needs to be as 'user' but instead, on my server it is 'files'. As server is
>a shared server so i may not be able to change it, what can i do to resolve
>this ?
>
Basically you just need to override the default session handler and
provide your own session functions that will use a MySQL table instead of
/tmp. Try this:
http://destiney.com/pub/php_db_sessions.tar.gz
--
Greg Donald
http://destiney.com