Fork me on GitHub

login problem on 1.2  Bottom

  • On my 1.2 i ve got a problem of login, sometimes it's work sometimes it doesn't work

    the pnUserLogIn return true

    im using SVN version

    André
  • is it possible it comme from a session loss ? does someone have the same issue ? did something change compare to this old way of login ?
  • Nothing changed here
    Sometimes there are problems with the browser cookies, or some weird cache issues, but cleaning the cookies works mostly of the times. Session loss can happen if something truncate your session_info table... more than that, seems pretty weird stuff.

    Now I remember something:
    The cookie has a "path" and the ID is calculated based on the base URL too.
    If you're playing with subdomains that can be the problem.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • i ve got a specific installation, but i really don't understand where does the probleme come from, i m logged in and then redirect to "index.htm"

    sessionutil mod
    before

    Code

    // (uncommend this line after 0.8.0.0 is released - ini_set('session.hash_function', (((float)phpversion() >= 5) ? 1 : 0));
            ini_set('session.hash_function', 0);


    after

    Code

    ini_set('session.hash_function', (((float) phpversion() >= 5) ? 1 : 0));



    where is the session expire var ?
    edit:secinactivemins & secmeddays



    i look at the code where i m unconnected, sometime it's appear in a

    Code

    !SecurityUtil::checkPermission('Admin::', '::', ACCESS_EDIT)


    the function return false



    edited by: mumuri, datetimebrief
  • Code

    if(     pnUserLoggedIn()){
          echo "logged in";
        }else{
          echo" not logged in";
        }
       
        echo SessionUtil::getVar('uid');
     
        if (!SecurityUtil::checkPermission('Admin::', '::', ACCESS_EDIT)) {
           echo "error";
           exit(1);
         //  return LogUtil::registerPermissionError();  
        }


    i ve run this test, it's appear im unlogged at random time and my UID is not defined

    give me

    Code

    not logged inerror


    i try to comment the content of the pnUserLogOut function, and the result is still the same, there seems to be a problem in the session



    EDIT it came from the fact i m using MEMORY table for the session table, now it works well



    edited by: mumuri, datetimebrief

This list is based on users active over the last 60 minutes.