LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Issues with saving PHP session in MySQL on Fedora (https://www.linuxquestions.org/questions/fedora-35/issues-with-saving-php-session-in-mysql-on-fedora-469442/)

tonyl 07-31-2006 01:34 PM

Issues with saving PHP session in MySQL on Fedora
 
HI:

I have a user login system written in PHP. it is designed to save sessions in MySQL for sercurity reason. The script was running fine on a Windows XP machine with PHP 5.1.4. However, when I moved the system to a Redhat 9 machine, it won't write to MySQL. I thought maybe the PHP 4.0 on Redhat 9 is too old. So I installed Fedora 5 core, with lastest PHP 5, still it won't work. I have set "session.save_handler users" in php.ini. and I also followed instructions posted on shiflett.org/articles/guru-speak-jan2005
to define new session_set_save_handler(). My php MySQL module seems working since I have been using phpMyAdmin to manipulate MySQL without problem...

I do not know what could be wrong at this stage. Could any expert advise what other things/aspects I should check?

Many thanks,

Tony

pddm 08-01-2006 12:46 AM

Is the session not stored by any browser or only IE?

Make sure that there is no logout script run before logging in for the 1st time, or Internet Explorer will not write the session information.

There is a really good Article on Custom Session Handling http://www.phpbuilder.com/columns/ying20000602.php3

I hope this helps


All times are GMT -5. The time now is 07:18 AM.