Well, I have this problem with fresh 0.8 laconica installation and with 0.8.1dev.

I have that: $config['site']['path'] = ''; (that means that i have installed laconica on the root of my host). So, when i uncomment session_set_cookie_params(0, '/'. $config['site']['path'] .'/');
Then i have a session token problem, when i try to login or register.

The log file shows this:
2009-07-19 10:01:00 LOG_DEBUG: action.php - User error '400' on 'login': There was a problem with your session token. Try again, please.

When I set $config['site']['path'] = '/'; then all is working fine, but the site url is with 2 more "//", its like that http://mysite.com///main/login
And I have a 3 similar cookies.

If I install laconica on some subfolder ... lets say 'laconica' and my site path is 'laconica', then all is working just fine.

And one more, I think that cookies must be valid not only for host.com but for www.host.com too. I have been checked the cookies on identi.ca and they are valid for host=.identi.ca. If the cookies are valid only for host=identi.ca then I will be logged in only for http://identi.ca (not for http://www.identi.ca

Any help will be good.

Greetings,
Milen Mihalev


Quoting Patrik Tschudin <[email protected]>:

that's the path-line in my config.php:

$config['site']['path'] = '';

then, being no expert, but playing around I found that:

1. with this line completely commented out in the config.php

// session_set_cookie_params(0, '/'. $config['site']['path'] .'/');

I do have no session token problems.

2. with its original version commented in:

session_set_cookie_params(0, '/'. $config['site']['path'] .'/');

I have the session token problem.

3. with the trailing "/" taken away, and the line commented in, the
problem was gone:

session_set_cookie_params(0, '/'. $config['site']['path']);

(always cleaning out all cookies and stoppping and restarting apache in between)

does this make sense?


2009/7/7  <[email protected]>:
Hi there,



i've installed laconica (version 0.74) on my webserver yesterday. The
installation was no problem and i've created some accounts. But today I
could not login or register a user. It was always the same error message:
"There was a problem with your session token. Try again, please."
I've tried out on three different PCs and i've deleted my cookies without
improvement. What's happened? Please, can you help me?



Thanks,

Michael

--

_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev


_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev




----------------------------------------------------------------
Zdravei.bg - myasto kydeto vseki moje da nameri po neshto za sebe si. Spodelete svoite snimki, video klipove, blogove, sreshtnete novi priateli. Kajete: Zdravei, tova sum az!
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to