Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enable sessions

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
GB
Hello
I am building a site on Redhat Linux 7.1 with Apache as Web Server and PHP 4.X. I have installed PHP from the Linux CD and dont know where its source is placed. The problem is that I want to use sessions in PHP but I get an error message. What should I do to enable them.
 
The session is enabled defaultly, do you put session_start() on top of your php page? Or you can check your session enabled state by using thie code phpinfo(). ------------------
Freedom is a Right
 
I do not know of anyway you can turn off that ability to use sessions. Follow what goatstudio said. If that does not work, from your linux terminal type 'locate php.ini' and you will find where the config file is. It is probably in /etc/php.ini. Then vi into it. Look clear through the file to be sure all settings are correct.

I am curious what error you are getting....

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top