Results 1 to 5 of 5

Thread: When trying php 5 can't stay logged in

  1. #1

    Default When trying php 5 can't stay logged in

    Hi,

    I have php 4 and php 5 compiled with zend on my server. Everything works fine with the default extension .php for php 4(not trying remote server). When I change the default extension .php to use php 5 by adding the following line to my htaccess file:

    AddHandler application/x-httpd-php5 .php

    I can't seem to stay logged into a user profile. Foe example after logging into a user profile and then going to upload I am presented with the login page again.


    When trying to login to the admin I get redirected to

    /admin/index.php?msg=You%20are%20not%20loged%20in.

    Any suggestions?

    My php 5 settings are as follows:

    http://75.126.226.120/info.php

    System Linux server.chatwithflash.com 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686
    Build Date May 4 2007 00:25:00
    Configure Command './configure' '--prefix=/usr/local/php5' '--exec-prefix=/usr/local/php5' '--program-suffix=5' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-mcrypt' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-zlib' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-fastcgi' '--enable-force-redirect'
    Server API CGI/FastCGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/local/php5/lib
    Loaded Configuration File /usr/local/php5/lib/php.ini

    Thanks,
    Brian

  2. #2

    Default Re: When trying php 5 can't stay logged in

    BTW, using vshare 2.6.

    Thanks
    Brian

  3. #3
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: When trying php 5 can't stay logged in

    Your session path is not set properly or PHP is not supporting session. This happens if your server have PHP 4 a default PHP and using pHP 5 with help of .htaccess.

  4. #4
    Join Date
    Nov 2007
    Posts
    7

    Default Re: When trying php 5 can't stay logged in

    So, can you help out with some details for what to do? I'm stuck in the same situation. That would be great! Thanks in advance.

  5. #5
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: When trying php 5 can't stay logged in

    I was using another script that was doing the same thing and experimented with that. I added the following to my .htaccess and I was no longer being kicked out of the admin:

    php_value max_execution_time 6000000
    php_value max_input_time 600000
    php_value output_buffering On

    I also put this in the php.ini in the same directory just to be sure

    max_execution_time 6000000
    max_input_time 600000
    output_buffering On

    Try it and see if that works for you. For vShare, my webhost had to do something special to my site, not sure what, but they fixed it.
    If it's not fun, stop doing it!

Similar Threads

  1. How long do the "last 5 users online" names stay in list?
    By grynmoors in forum General Discussions
    Replies: 4
    Last Post: 09-12-2007, 08:18 AM
  2. Error when clicking Upload and you're not logged
    By danielvg in forum Fixed Bugs
    Replies: 3
    Last Post: 08-28-2007, 11:03 PM
  3. Stay signed in
    By leki in forum Feature Requests
    Replies: 0
    Last Post: 05-30-2007, 06:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •