1. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Caro, Michigan
    Rep Power
    I've been looking into creating a custom session handler that uses a database instead of cookies. The manual says that in order for this to work, I have to set session.save_handler = user in the php.ini file. My site is hosted and I doubt the people will change the php.ini file for me, because then anyone who wanted to use sessions the normal way, couldn't. Is this the only way to do it? Can I set session.save_handler at runtime? Any suggestions or help is appreciated.

    ---John Holmes...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Rep Power
    I am sure it is possible to do it in a .htaccess file I think the format is for example
    php_value variablename variablevalue
    php_value session.name "PHPSESSID"

Similar Threads

  1. URL session handling problem
    By rec3000 in forum PHP Development
    Replies: 6
    Last Post: February 24th, 2009, 08:33 AM
  2. refreshing page on session
    By xlordt in forum PHP Development
    Replies: 3
    Last Post: August 26th, 2003, 03:28 PM
  3. Custom session management headaches
    By the_aimbot in forum PHP Development
    Replies: 3
    Last Post: August 25th, 2003, 10:28 PM
  4. reading existing session, problem
    By buttie in forum Perl Programming
    Replies: 7
    Last Post: August 11th, 2003, 10:26 AM
  5. session start issue!
    By djl in forum PHP Development
    Replies: 0
    Last Post: July 29th, 2003, 01:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo