设置php的session分级存放后,phpMyAdmin运行不正常

  前一段把php的session进行了目录分级存放,详情见 http://www.toplee.com/blog/300.html ,总的来说效果不错,不过却在使用phpMyAdmin时遇到点小问题。

  首先是phpMyAdmin页面显示错位,然后是页面间_GET和_POST参数都不能正常传递,因为最近还修改了服务器上的一些别的配置,花了很长时间才定位到是session的问题,在phpMyAdmin的libraries/common.lib.php文件中进行debug,发现在session验证的地方总是出错,于是怀疑到php的session故障,不过由于其他应用中使用session都没有问题,应该是phpMyAdmin处理session方面的问题,打开 libraries/session.inc.php,可以看到一些处理session的ini设置项,在适当位置加入下面一行代码,问题得到解决。

ini_set('session.save_path',"your_session_save_path");

  由此可以引出一些通用的问题,就是如果在php代码里面改变了ini中session的设置项,则一些关键的项都需要重新设定,php.ini中原来定义的设置就不会继续生效了,今后需要多加注意。

Category: PHP / Zend
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
No Responses
  1. minecraft says:

    First of all I want to say terrific blog! I had a quick
    question that I’d like to ask if you do not mind. I was interested to find out how
    you center yourself and clear your mind before writing.
    I have had a hard time clearing my mind in getting my thoughts out
    there. I do take pleasure in writing however it just seems like the first 10 to 15 minutes are generally wasted just trying to figure out how to begin. Any suggestions or hints?
    Thanks!

  2. minecraft says:

    Good post. I learn something new and challenging on sites I stumbleupon every
    day. It’s always helpful to read through content from other writers and use a little something from their web sites.

  3. minecraft says:

    I am genuinely happy to read this web site posts which carries plenty of valuable information, thanks
    for providing these data.

  4. excellent post, very informative. I ponder why the
    opposite specialists of this sector do not realize this.
    You should continue your writing. I’m sure, you have a huge readers’ base already!

  5. Someone necessarily lend a hand to make severely articles I’d state.
    This is the very first time I frequented your website page and so far?
    I surprised with the research you made to create this actual submit amazing.
    Great job!

  6. Hey, I think your website might be having browser
    compatibility issues. When I look at your blog site in Chrome,
    it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that,
    great blog!

  7. Ahaa, its fastidious discussion concerning this post here at this web site, I have read all that,
    so now me also commenting at this place.

  8. A lot of thanks for your own efforts on this site. Ellie takes pleasure in going through investigation and it’s really obvious why. A lot of people notice all concerning the lively form you deliver precious guidance by means of your blog and recommend participation from the others on that point so my daughter has always been becoming educated so much. Take pleasure in the remaining portion of the year. You are always doing a fantastic job.

  9. What a material of un-ambiguity and preserveness of precious experience about unexpected feelings.

  10. jordan 6 says:

    I want to get across my affection for your kindness supporting persons who require guidance on this subject. Your special commitment to passing the solution all through had been definitely effective and has constantly helped associates just like me to achieve their goals. This interesting advice can mean a lot to me and additionally to my office colleagues. Regards; from all of us.

  11. Hi to every single one, it’s really a good for me to pay a quick visit this site,
    it contains priceless Information.

  12. Wow, superb blog structure! How lengthy have you been running a
    blog for? you made blogging glance easy. The overall glance of your site is wonderful, as well as the content material!

  13. What’s up Dear, are you really visiting this site on a regular
    basis, if so then you will without doubt take good knowledge.

  14. I believe everything wrote made a lot of sense. But, think on this, suppose you added a
    little content? I am not suggesting your content is not solid, but suppose you added a post
    title that grabbed a person’s attention? I mean 设置php的session分级存放后,phpMyAdmin运行不正常 | 李俊麟的平凡生活
    is kinda boring. You ought to look at Yahoo’s home page and note how they create post headlines to grab people to open the links.

    You might try adding a video or a pic or two to grab readers interested about
    everything’ve got to say. Just my opinion, it would make your posts a
    little bit more interesting.

  15. quest bars says:

    Hey there! This is my first visit to your blog!
    We are a team of volunteers and starting a new project in a community in the same niche.
    Your blog provided us useful information to work on. You
    have done a extraordinary job!

  16. Sling TV says:

    Thanks for finally talking about >设置php的session分级存放后,phpMyAdmin运行不正常 | 李俊麟的平凡生活 <Loved it!

  17. Sling TV says:

    Currently it seems like Expression Engine is the best
    blogging platform available right now. (from what I’ve read)
    Is that what you’re using on your blog?

  18. Sling TV says:

    Wow! Finally I got a web site from where I be able to
    truly take helpful facts concerning my study
    and knowledge.

  19. Hi there, after reading this remarkable piece of writing i am also glad
    to share my knowledge here with colleagues.

  20. I don’t even understand how I ended up right here, however I assumed this put
    up used to be good. I do not recognize who you are but definitely you are going to a famous blogger when you are not already.

    Cheers!

  21. Hey there! Do you know if they make any plugins to
    protect against hackers? I’m kinda paranoid about losing everything
    I’ve worked hard on. Any recommendations?

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image