Menu

Failed using sess and auth classes

Help
Anonymous
2002-04-05
2002-04-13
  • Anonymous

    Anonymous - 2002-04-05

    As the subject says it, I don't manage to use correctly sess and auth classes in PhpLib. By arriving on the authentification form an error that I can't solve occurs :

    "Parse error: parse error in d:\program files\easyphp\www\phplib-7.4-pre1\php\session.inc(339) : eval()'d code on line 1"

    Can someone help me ?

     
    • Fiorenza Caetani

      I have exactly the same error using auth, and I'm not able to detect where is the problem.

      But I'm trying to use PHPlib with MSSQL 7.0, so may be that's the problem. But I'd be really glad if there is someone able to tell if there's a way to go around this error.

       
    • Layne Weathers

      Layne Weathers - 2002-04-12

      This problem is caused by the wrong column type in the active_sessions table. The column type specified in the create_database.mssql file is way too short to hold session data, even without a lot of registered variables.

      I had a contract programmer who was developing on NT and he spent a couple hours trying to find the right data type that was supported by his version of MSSQL and the database drivers he had. I wish I could remember his solution, but it was a few months ago and I've slept since then.

       
    • Fiorenza Caetani

      Thank you very much: now may be I'll be able to find a better solution than using two different databases (mysql with phplib for login and mssql for other kinds of data).

       

Log in to post a comment.