Sessions Not Enabled with php

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Sessions Not Enabled with php

Post 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]
cyberman

Re: Sessions Not Enabled with php

Post 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
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post by duplay »

Hi,

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

Re: Sessions Not Enabled with php

Post by cyberman »

Aah, you own a webserver. Put it in your cmsms root.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post 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?
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post 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]
cyberman

Re: Sessions Not Enabled with php

Post 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"
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post 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?
cyberman

Re: Sessions Not Enabled with php

Post by cyberman »

Hmm, I can make a look. Sometimes the options is inside your ini file, it's only outcommented ...
Pierre M.

Re: Sessions Not Enabled with php

Post 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.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post 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
Pierre M.

Re: Sessions Not Enabled with php

Post 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.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Sessions Not Enabled with php

Post 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]
cyberman

Re: Sessions Not Enabled with php

Post 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  ::) ...
Locked

Return to “[locked] Installation, Setup and Upgrade”