I am trying to start session this way:
session.auto_start = 1
I set it this way. The session doesn’t start. I changed start in my php as the following:
ini_set("session.use_only_cookies",true);
session_save_path(dirname(__file__)."/../User");
Basically, I dont see any file created in that folder.
Also when I do this:
$id=session_id();
I get $id=0;
Why all those mistakes happen?
Where and how do you do that? Not in code I hope? It’s a php.ini setting, and if you want to enable it, you have to do it there.
Does the user as which PHP runs have permissions on that folder? Haven’t you got your PHP files sorted in deeper folders, where “(directory)../User” doesn’t exist? Have you tried echoing the path to see where it points? Have you tried manually writing a file there? What about using
realpath()?That’s a symptom. Your session doesn’t start, so you can’t get a session ID.
What do you get? Tried
var_dump($os)?That “Weird Browser” is Chrome 15. What’s weird about that?
And please enable error reporting since I’m sure there’ll be a few hints there.