johngeorge Posted March 20, 2007 Share Posted March 20, 2007 I'm having some real problems configuring my php to work with sessions. My code works fine on other servers, just not my own testing server installed on my personal laptop (Windows XP). The session is created and the file gets stored in the correct place, but when the user gets directed to another page the browser doesn't request for the current session, it just creates another. I have tried sending the SID within the URL, and that works just fine, but unfortunately that's not going to help me with my project. Therefore, I assume it's a cookie thing. I've been playing around with the php.ini file but have not improved the situation. I tried turning the session.use_only_cookies function on, but that's not helping. Would any of you kind people have any idea what's going on? These are the current configurations: session.auto_start Off session.bug_compat_42 Off session.bug_compat_warn On session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_httponly Off session.cookie_lifetime 0 session.cookie_path / session.cookie_secure Off session.entropy_file no value session.entropy_length 0 session.gc_divisor 1000 session.gc_maxlifetime 1440 session.gc_probability 1 session.hash_bits_per_character 5 session.hash_function 0 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path C:\server\tmp session.serialize_handler php session.use_cookies On session.use_only_cookies Off session.use_trans_sid 0 Quote Link to comment https://forums.phpfreaks.com/topic/43484-my-session-arent-working/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.