SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question help needed: using session_set_save_handler()

    Can i still implement the callback functions for session_set_save_handler() and get a script to use my implementation instead of the default if the session storage is set to 'files' in php.ini?

    I'm thinking of using a database-based implementation...

    thanks

    Joel

  2. #2
    Action! filmfoto's Avatar
    Join Date
    Dec 2001
    Location
    Sweden
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are on a shared server and don't have access to the php.ini file, use this at the top of your script:
    PHP Code:
    ini_set("session.save_handler""user"); 
    After the script, it returns to normal.


    Cheers.

  3. #3
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!

    i didn't even know the ini_set() function exists... that would help alot since i've no control over the php.ini file on my host...


Bookmarks

Posting Permissions

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