LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-31-2006, 01:34 PM   #1
tonyl
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 08-01-2006, 12:46 AM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Mint 19.2
Posts: 112

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not save PHP session in MySQL tonyl Programming 3 08-03-2006 02:39 AM
PHP & MYSQL => session object using db link resource ldp Programming 2 03-19-2005 02:38 AM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 06:54 PM
Apache 2, PHP and MYSQL Issues. carpediem Linux - Distributions 3 04-17-2004 08:11 AM
fedora/rh session saving xconspirisist Linux - Software 2 01-07-2004 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration