Menu

User Authentication by Session

Help
2005-12-04
2012-10-11
  • Graham Oliver

    Graham Oliver - 2005-12-04

    I am trying to set up a user authentication scheme with 1.3.11p1

    My users are already logged in and have Session Variable "MM_Username" set. I have set this in config.ini but I cannot get this to be recognised by session.php - it says 'Undefined index'

    Is this feature meant to be usable or should I try something else? Any help would be much appreciated.

     
    • Reini Urban

      Reini Urban - 2005-12-05

      Is this wiki public?
      Can I have a look at it?
      Could you post your config.ini settings for
      AUTH_SESS_USER and AUTH_SESS_LEVEL.

      AUTH_SESS_USER = MM_Username
      should be enough, but I'll have a look.

       
      • Graham Oliver

        Graham Oliver - 2005-12-05

        Unfortunately this wiki is not public. It is in a directory within the members-only area of a website. .htaccess is used to restrict access. Additionally, users log-in to identify themselves before getting access to certain php pages, and I would like to extend this log-in to cover the wiki pages, using same session.

        I have set
        AUTH_SESS_USER = "MM_Username"
        AUTH_SESS_LEVEL = 2
        also
        USER_AUTH_ORDER = "Session"

        I tried adding the line print_r($sess); to Session.php and found there was nothing set in the array. I then added session_start() in index.php and found it was now picking up my session variables.

        However, I now have a clash in lib/DbSession/SQL.php which is attempting to change the session module's settings. Can I supress the use of the sessions table in the MySQL database?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.