session management on my local computer

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
ozkurede
Forum Newbie
Posts: 2
Joined: Sun Jul 31, 2005 3:14 am

session management on my local computer

Post by ozkurede »

I created a session management system which requires to login using user&password. The system works fine on any hosting, on the net. But ıt does not work on my local computer. After I login, when i try to visin any secure page, the system gives "you're not logged in" message.

What could be the reason for this?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Are you sure your sessions are set up well on your local server?

If you prepend the following to your scripts, you might get some hints..

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ozkurede
Forum Newbie
Posts: 2
Joined: Sun Jul 31, 2005 3:14 am

Post by ozkurede »

thank you,
after i turned error messages on, i realized that the session cannot be started because i do not have the directiory /tmp in which the session data was to be written.
i created the directory, and now it works fine, thanks a lot.
Post Reply