sessionID throw URL
PHP client class (and I don't know if is the same with the other languages) uses a cookie to mantain the session between the page and the pad. It works perfectly if both are in the same domain, and also can work if pad is on a subdomain, but fails when we try to embed a pad from another domain.
A possible solution would be to pass sessionID thow the URL, as an embed parameter. Remember that in https connections everything is encrypted, also the URL, and there are no security issue in that sense.
Etherpad Lite should accept sessionID throw the cookie and also throw the URL.
Not to nitpick, but URL parameters are logged by most Web servers and proxies, so to a degree this is still less secure than cookies. Whether or not that's worth considering, I'm unsure.
-1
Most of the security guides on the Internet (google for "php session id security" recommend something like "Ideally, don’t pass session ids in the URL – require users to accept a cookie if they need to “log in”."
I also have this issue for a long time, when the pad is embeded in a iframe, then I dont have pemission to access. so I also pass the session id through URL and knowing this has security issues. Looking for a better solution.
Another solution would be to add etherpad lite in the path: example.com/pad
Cookie would work fine, and it can be configured with the proxy pass, if pad is in another server. The question is etherpad lite can work in a subpath?
@sembrestels: can you explain that in more detail? Can I just add the full path to the session cookie and it would work within an iframe?
What about reverse proxy rewriting the request? Will that fulfil your needs?
Not sure whether you ask me, but now that I have understood better what reverse proxy does, I think it should do the trick. Still have sometimes issues with cookies (on the same domain), but that is due to my programming skills (or lack thereof) :)
Sounds like reverse-proxying is the preferred solution here. Anyone opposed to this being rejected and closed?
Ok, it can work with some apache configurations. Let's close it.