PHP 5.2 Sessions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

audiodef wrote:Yep. Tried it with different browsers too. Nothing I do with browsers, firewall settings and php.ini allows PHP to use sessions without passing the SID. I'm hoping it isn't in fact a bug, but it just seems more and more like there is a particular condition under which this server software version combination keeps PHP sessions from happening, and that somehow on my machine this condition exists. I just wish I were more of a hacker to figure it out.
You definately have something configured wrong in your PHP.ini. This is what I am running...
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0
... and I don't have any of the problems you are having. You can force the session id to be hidden by including

Code: Select all

ini_set ("session.use_trans_sid","0");
before the session_start() function call.
audiodef
Forum Newbie
Posts: 17
Joined: Sun Dec 10, 2006 8:39 am

Post by audiodef »

I hope you're right, but I'm just not seeing it. I think I posted the session section of my php.ini earlier in this topic, so the first one to point out the magical boo-boo gets 1 million magical hacker points. In the meantime, I've given it the old Bronx cheer and am setting up VMWare with a Linux guest OS, where I will run anything that gives me grief under Windoze.
Post Reply