lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > Also, for future reference it is worth noting that you need to add an
> > extra '\\' (or '/') to the end of the dir name when you call
> > cgilua.session.setsessiondir.  On Windows, I did it like this:
> > cgilua.session.setsessiondir("C:\\Program Files\\Kepler\\session\\")
>         In fact, `cgilua.session.setsessiondir' checks if the
> last character is '/', but there is no check for '\'.  I thought
> that Windows will accept '/' instead of '\\' in this case.  Have
> you tried that?
>                 Tomas

I just saw that.
The only session I have been able to get working is the first one
(00000001) and even that took some work. I thought it was adding the
extra \\ to the end that made it work, but apparently not, because
when I closed the browser and tried it again it caused another error:
C:\Program Files\Kepler\lua\cgilua/session.lua:62: File exists.

To make it work I just had to remove the assert from that line of
session.lua. making it:
    'lfs.mkdir (root_dir)'
it still errors on that line, it just isn't caught.. and it doesn't
matter to me since the dir actually does exist.

I don't think it should be getting inside the 'if .. then' block on
line 61, which is (in case your version of the file has different line
numbers):
    'if not lfs.attributes (root_dir) then'

could this be a bug in lfs?

Chris