Did you try with the following version too? Make the line look this way: session_set_cookie_params(0, '/'. $config['site']['path']);
instead of the original: session_set_cookie_params(0, '/'. $config['site']['path'] .'/'); if in addition you set $config['site']['path'] = ''; then "path" is empty and you don't add a "/" at the end with the trailing .'/' so the URL should look ok, I guess. 2009/7/19 <[email protected]>: > 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 > _______________________________________________ Laconica-dev mailing list [email protected] http://mail.laconi.ca/mailman/listinfo/laconica-dev
