mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

Running cm/setup.php takes me back to PHPR* login...........
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=1&t=85
Page 1 of 1

Author:  LinuxT [ 24 Jul 2004, 03:58 ]
Post subject:  Running cm/setup.php takes me back to PHPR* login...........

CanĀ“install CMS...

When i login to PHProjekt and then in go to the cm directory i go back in to the login page...


My php error_log states session already started..


Can someone help thankxx

Author:  mvaldez [ 27 Jul 2004, 05:52 ]
Post subject:  Session problem...

LinuxT:

> CanĀ“install CMS...
> When i login to PHProjekt and
> then in go to the cm directory i
> go back in to the login page...
> My php error_log states session
> already started..

Hello. Let me see if I understood you. You login in Phprojekt, then open the URL /phprojekt/cm/setup.php (or the like) and it shows you a new login page. Is this right?

I cannot reproduce this problem. It seems like a session problem but the error you see on the error_log should harmless. (That error means the CMS script is trying to start a session but Phprojekt already did, so it ignores the request. It is harmless because the CMS doesn't store any session data, it just making sure the authentication was done).

So, please tell me about the PHP version, operative system and browser. Also:
Does this happens with other browsers?
Does Phprojekt work ok?
Did you run the env_test.php script of Phprojekt?
If you did or if you do it now, does it show any problem with the session management?

LinuxT, please send me that information, and I will search for a solution.

Regards,


Mario A. Valdez-Ramirez.

Author:  activemax [ 26 Aug 2004, 06:55 ]
Post subject:  Same problem..

"Sorry for my english.. i'm italian.."

Mario..
When i login to PHProjekt and then in go to the cm directory i go back in to the login page...

A session had already been started - ignoring session_start() in g:\webserver\easyphp1-7\www\intranet\lib\gpcs_vars.inc.php on line 5

Y work with windows xp pro
and suite easyphp 1,7 (Apache 1.3.27 - PHP 4.3.3 - MySQL 4.0.15 - PhpMyAdmin 2.5.3)

Phprojekt with this solution works fine..

Regards..

Ativemax
activemax@activemax.com
http://www.activemax.com

Author:  Activemax [ 26 Aug 2004, 07:20 ]
Post subject:  Setup problems

I remove from gpcs_vars.inc.php

This lines..

if (!defined("soap_request")) {
session_start();
$PHPSESSID=session_id();
}


The setup CM continue.. and works.. but the phprojekt login dont' works..



Activemax
http://www.activemax.com

Author:  Guest [ 27 Apr 2005, 07:28 ]
Post subject: 

Same problem in returning to phprojekt login page. I don't think I see a resolution here. env_test.php tests all passed, and phprojekt is running. I did the chown command on my local machine and transferred the cm directory to the web server . Have tried this in different browsers and the install worked fine on my local server. Is this a security issue?

Author:  Guest [ 27 Apr 2005, 16:26 ]
Post subject: 

I got the cm/setup.php to work. cmod set to 775, launched cm/setup outside of projekt, and made sure I didn't have bad files loaded on the webserver.

Author:  mvaldez [ 10 May 2005, 00:46 ]
Post subject:  Double-login workaround...

To anybody having the double-login problem (you login in Phprojekt and when selecting the CMS tab you are asked again to login, OR when you logout from an user and login again the CMS thinks you are still logged as the first user), read on.


If you are using Apache and PHP is running as a SAPI module, you can use a .htaccess file to enable the PHP option session.auto_start. It seems that when session.auto_start is disabled, the Phprojekt and CMS module session become dissociated (each start using a different session).

The .htaccess should contain:
Code:
  php_value session.auto_start 1
  php_value output_buffering 16000


Test and tell, please. Also, note that this is a workaround, not the final solution.

Regards,

Mario A. Valdez-Ramirez.

Author:  mvaldez [ 10 May 2005, 03:02 ]
Post subject:  Patched version of the CMS module...

To anybody having the double-login problem, you can now download a patched version of the CMS module (0.6.1) from http://www.mariovaldez.net/software/cm_4p/download.php. This version 0.6.1 only addresses this bug and another minor one.

Please let me know if it works correctly in your installation.


Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/