Find the answer to your Linux question:
Results 1 to 4 of 4
These are the relevant entries in my php.ini - at least I think... Code: session.save_handler = files session.save_path = /var/tmp/php4 However, when I look in "/var/tmp/php4" it is empty, so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    43

    Saving PHP4 Sessions


    These are the relevant entries in my php.ini - at least I think...

    Code:
    session.save_handler = files
    session.save_path = /var/tmp/php4
    However, when I look in "/var/tmp/php4" it is empty, so somehow the session cache isn't being used. The permissions are Debian's default permissions, 732, but I also tried 777, with the same results. What am I missing?

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    if it's code you made yourself, i assume you have called the session_start() function. This will put a file in the session path, and if it is the same session will connect to that session for use in that page.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    43
    It is PostNuke, so perhaps PostNuke isn't coded to use sessions as files? If that is the case, I am not going to worry about it...

  4. #4
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Just had a look on my laptop, and that doesn't seem to be creating any session files either using postnuke. I'd say from that that postnuke doesn't create sessions as i can login fine, and no session files appear in /tmp where the session files do usually appear. I'd say as long as it works fine, dont worry about it!
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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