Jump to content

mike_at_hull

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mike_at_hull's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, I think I have the same problem too. I think the problem is in using localhost. I am running php 5.2.0 on apache 2.0.59. I can see that sessions are set up in PHP, but they are not working. My PHP Set from PHPinfo is reporting the following: - Session Support  enabled  Registered save handlers  files user  Registered serializer handlers  php php_binary wddx  Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 Off Off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path c:\tmp c:\tmp session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path c:\tmp\ c:\tmp\ session.serialize_handler php php session.use_cookies On On session.use_only_cookies On On session.use_trans_sid 1 1 If I set the session.save_path in my php.ini to ="c:\tmp" it seems to write session variables ok - no error comes up. But when I try to retrieve the variables I get "undefined index" errors. If I change the session.save_path to ="4:c:\tmp" or another integer number I get the following error when trying to write the session variables "warning: session_start()[function session_start]: open (.....) failed: no such file or directory..." When this happens the system tries to split up the session id into a number of subdirectories off the c:\tmp directory e.g. c:\tmp\f\d\0\s\b092.... this example would be if the node integer was set to 4. I have checked the permissions on the c:\tmp directory and they are ok and I have tried to use different directories to store sessions in, but it makes no difference. I haven't been able to sort this for a couple of weeks now and it's bugging me. Anyone any ideas?
  2. I am having a problem using sessions in my php. I think the problem is in my setup. I am running php 5 on apache 2 with MySQL 5 on windows XP and I am accessing the server as a localhost. If I set the session.save_path in my php.ini to ="c:\tmp" it seems to write session variables ok - no error comes up. But when I try to retrieve the variables I get "undefined index" errors. If I change the session.save_path to ="4:c:\tmp" or another integer number I get the following error when trying to write the session variables "warning: session_start()[function session_start]: open (.....) failed: no such file or directory..." When this happens the system tries to split up the session id into a number of subdirectories off the c:\tmp directory e.g. c:\tmp\f\d\0\s\b092.... this example would be if the node integer was set to 4. I have checked the permissions on the c:\tmp directory and they are ok and I have tried to use different directories to store sessions in, but it makes no difference. Any ideas?
  3. I am having a problem using sessions in my php. I think the problem is in my setup. If I change the session.save_path in my php.ini to ="c:\tmp" it seems to write session variables ok - no error comes up. But when I try to retrieve the variables I get "undefined index" errors. If I change the session.save_path to ="4:c:\tmp" or another integer number I get the following error when trying to write the session variables "warning: session_start()[function session_start]: open (.....) failed: no such file or directory..." When this happens the system tries to split up the session id into a number of subdirectories off the c:\tmp directory e.g. c:\tmp\f\d\0\s\b092.... this example would be if the node integer was set to 4. I am running php 5 on apache 2 with MySQL 5 on windows XP ad I am accessing the server as a localhost. I have checked the permissions on the c:\tmp directory and they are ok and I have tried to use different directories to store sessions in, but it makes no difference. Any ideas?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.