[mythtv-users] recorded programs patch - session problem
Joel Anderson
myth at jobless.ca
Wed Jun 9 00:37:42 EDT 2004
Ok, I discovered that the cookie was never actually created, even though it
appeared in the http header and everything seemed to be in order. I set my
browser so that it would ask before saving any cookie at all, and it never
asked. I did this with IE6 and Mozilla, with no cookies in sight for
either.
I eventually found that for some reason it does not like the 'domain' being
set in the cookie parameters, possibly because it doesn't have a domain? It
was returning the hostname instead, which seems to have caused the browsers
to reject or completely ignore the cookie altogether.
So to sum it up, I edited /var/www/html/mythweb/includes/init.php and
changed
session_set_cookie_params(60 * 60 * 24 * 355, '/', server_domain);
to
session_set_cookie_params(60 * 60 * 24 * 355, '/');
And actually I think the '/' is not really required because it is the
default anyway, so it can even be
session_set_cookie_params(60 * 60 * 24 * 355);
I don't know if changing this causes problems for anyone else, but it works
perfectly for me.
Regards,
Joel
More information about the mythtv-users
mailing list