Hi all, I've a session problem. Actually I think it is a php.ini setup problem. I've some authorization code that doesnt work in my local computer but works fine on the web server. When user enters his/her username and password, they are sent to login.php.In this page usr session var is registered. Then page is redirected to index.php. But in index.php that session variable looks like unregistered. I'm sure that the code is correct since it works on web server.. I'm going crazy... Please help.. Am i missing something with the configuration of php.ini or something? Thank you.. Kerem
Hi, in these cases may be usefull to do a php file with just <?phpinfo()?> and look at difference from that of your localhost and remote.
see you
p.s: Don't forgive to remove it, after. It's a good hack backdoor
Yes I already did it 🙁 I've checked every setting one by one... All the settings seem the same. Can it be caused by the verison of PHP or Apache? I don't know.. I'm very confused.. Thank you for your response..
What kind of session you use?
Because the session with no cookie use a temporary directory. Try to look if in localhost it is right and if at session_start() any new file are made in this directory...
Yes i'm using session without cookie. I set /tmp directory in order to put temporary session files in php.ini. I created folder tmp in C:... So when a session is started a file is created in this folder. No problem with session creation. Everything is ok in this file. But when page is redirected to index.php, session_is_registered("usr") give false 🙁 Soooo Weird... 🙁🙁🙁🙁
And what about globals? are setting-up like as remote? There isn't any other difference in phpinfo ?
Yes they are all the same 🙁🙁🙁🙁 Now I'm trying to install Apache 1.3.x... I was using Apache 2.. I really don't know.. I'm trying everything now.. 🙂
Thanks very much for your responses... I've fixed the problem.. I installed Apache 1.3.28 instead of Apache 2.. Now sessions work fine. I dont understand this weird problem. Is it a bug of Apache 2? Anyway now it is working.. Thanks again.. Kerem
hii, what went wrong earlier?. I have the same probs. my version of apache is 1.3. When an user enters the correct information in my login.php I register the username. The session file is created in tmp directory but when I use session_is_registered in another page it still is false. where am I wrong?