Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2003
    Posts
    603
    Thanks
    2
    Thanked 1 Time in 1 Post

    session_save_path changed and now...

    PHP Code:
    session_save_path('/sandrive/sessions');
    session_start(); 
    i just changed the session save path to our new SAN drive... but now PHP files take almost 40 seconds to load.... the SAN drive is working fine for video files and picture files with no slowness at all.....what is going on??

  • #2
    New Coder
    Join Date
    Jun 2010
    Posts
    24
    Thanks
    2
    Thanked 1 Time in 1 Post
    If your site sets a custom location with session_save_path() you also need to set a value for session.gc_probability, e.g.:

    PHP Code:
    <?php
    session_save_path
    ('/home/example.com/sessions');
    ini_set('session.gc_probability'1);
    ?>
    Otherwise, old files in '/home/example.com/sessions' will never get removed!

    Hope this helps.

  • #3
    Regular Coder
    Join Date
    Oct 2003
    Posts
    603
    Thanks
    2
    Thanked 1 Time in 1 Post
    well it works fine on 2 of my 6 servers that i am about to load balance... but 4 of the 6 keep taking 20-40 seconds for php files to load when the new session save path is set. i even tried it in php.ini same issue


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •