Page 1 of 1

Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 6:34 pm
by duplay
I have installed php on my Windows Server and am getting the yellow circle for sessions not being enabled. I can install a site, but cant do anything with the login page. I enter my login and PW, but nothing happens. How can I enable session via my php install.

Please dont respond with "look it up in google" or "not sure" I need detailed examples of how to enable this or why my login to admin wont work. Thanks


MJD

[gelöscht durch Administrator]

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 6:47 pm
by cyberman
duplay wrote: How can I enable session via my php install.
Please try this

1. Create a file named .htaccess
2. Open it with your favourite editor
3. Write this

Code: Select all

php_flag session.use_trans_sid on
4. Save file
5. Load it to root directory

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 6:50 pm
by duplay
Hi,

Save that to the root directory of my webserver, my php folder, or my cms folder?

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 7:06 pm
by cyberman
Aah, you own a webserver. Put it in your cmsms root.

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 7:14 pm
by duplay
I created the file called .htaccess and pasted the following code in it: php_flag session.use_trans_sid on


then i copid and pasted it to my folder called SESC (this is the main folder for my site~ I assume this is root) refreshed the install and still yellow ball for sessions enabled. Any thoughts?

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 7:27 pm
by duplay
I have attached the screenshot of my php config on the server. I show the top of php saying the php support is enabled, but I still get the yellow ball for sessions enabled. Could my admin login issue be anything else?

Thanks

[gelöscht durch Administrator]

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 7:31 pm
by cyberman
Have you tried to login in admin panel?

Not sure, but think install procedure reads only values from php.ini ...

Ähmm, if this is your webserver, you don't need .htaccess. It should be possible to activate this in php.ini

http://de.php.net/ref.session

Update:

Please try to set session.auto_start to "on"

Re: Sessions Not Enabled with php

Posted: Tue Feb 20, 2007 7:36 pm
by duplay
I have my php.ini file but am not sure where to set this in the ini file. If I pasted you the ini file, would you be able to direct me to do this?

Re: Sessions Not Enabled with php

Posted: Wed Feb 21, 2007 5:28 am
by cyberman
Hmm, I can make a look. Sometimes the options is inside your ini file, it's only outcommented ...

Re: Sessions Not Enabled with php

Posted: Wed Feb 21, 2007 8:10 am
by Pierre M.
duplay wrote: ...my Windows Server... How can I enable session via my php install.
Please dont respond with "look it up in google"...
Why Google ? When looking for information about PHP sessions on a Windows driven computer, one should have a look at :
http://www.php.net/manual/en/install.windows.php
http://www.php.net/manual/en/ref.session.php
http://www.php.net/manual/en/ini.php
This is not CMSms related. I bet at least one of your session.*path INI directive is not well set to a PHP writeable folder.
Pierre M.

Re: Sessions Not Enabled with php

Posted: Wed Feb 21, 2007 9:39 pm
by duplay
I have via my php test page on the server it telling me session support is enabled, but I still get a yellow circle for the install of any site that says "Checking if sessions are enabled"

Although the PHP support for sessions is not mandatory, it is highly recommended. Logins and other things may slow down and you may have difficulty with some addon functionality without this capability.


I am new to php on a pc. Basically that is the only yellow circle i get. I can install a site and visit it, but when i go to login, i place login and pw, hit return and page comes back to login page. any thoughts?

thanks

Re: Sessions Not Enabled with php

Posted: Thu Feb 22, 2007 3:02 pm
by Pierre M.
Sessions are not required to browse a CMSms site.
Sessions are mandatory to log into the admin to manage the CMSms site.
Please check your PHP install. May be try XAMPP http://www.apachefriends.org/fr/xampp.html or another PHP packaging for Windows.
Pierre M.

Re: Sessions Not Enabled with php

Posted: Thu Feb 22, 2007 4:20 pm
by duplay
This is a capture of my phpinfo file which tells me my sessions are enabled, but I still cant login to the admin. I have tried the xamp but havent had much luck (it was missing the driver for mysql which is needed to do the install) any thoughts?




[gelöscht durch Administrator]

Re: Sessions Not Enabled with php

Posted: Thu Feb 22, 2007 4:46 pm
by Pierre M.

Re: Sessions Not Enabled with php

Posted: Thu Feb 22, 2007 5:48 pm
by cyberman
duplay wrote: Save that to the root directory of my webserver, my php folder, or my cms folder?
Have no more solutions for you  :(.

But if I read your questions, I think, it's very risky for you to own a webserver, if you don't know, what you have to do  ::) ...