Page 1 of 1

Sessions - Put into database?

Posted: Tue Dec 14, 2004 2:08 pm
by legendaryfox
Hi I'm new :D

anyways, As far as I understand, when you create a session, it usually gets saved into whatever session_save_path is. However, is it possible to put a session directly into a mysql database (ie nothing will be created in /tmp or in whatever session_save_path is)? If so, will it require extensive coding?

Many thanks!

Posted: Tue Dec 14, 2004 3:05 pm
by hawleyjr
Check out [php_man]serialize[/php_man]

Posted: Tue Dec 14, 2004 4:38 pm
by hedge
sure, you just write your own session handler functions.

http://ca3.php.net/manual/en/function.s ... andler.php

Posted: Tue Dec 14, 2004 9:48 pm
by lostboy
http://www.phpbuilder.com/columns/ying2 ... hp3?aid=19 is an article on using mysql for session mgmt