1 Dec 2007 04:14
Re: login_auto, embedding in custom page
Paul Lesniewski <paul <at> squirrelmail.org>
2007-12-01 03:14:46 GMT
2007-12-01 03:14:46 GMT
Please do not erase the thread context. Keep the relevant parts of the conversation. Don't assume you are the only person we are having conversations with on the mailing list and that we remember every last detail of your environment and problem. Keep context, and post in-line with your replies. On 11/29/07, kriswarner <kriswarner <at> solidaritymail.com> wrote: > > I discovered the problem. The code from my last post works, it's just that > the cookies are stored in mail/ rather than the root folder of my site. For the plugin to work, that is exactly where the cookie belongs. All the other SM cookies should also be placed there. If your login page is storing cookies *outside* the SM directory, then that might be a problem, although a bit strange since the plugin uses $base_dir, which should be correct.... although maybe when it is run from an embedded login page it is not (test it and print it out and let us know so we can ponder other ways to deal with that). A hack to get it back in the SM directory would be to go in the plugin and replace $base_uri in the functions file for all the setcookie() calls with the actual path you need, such as "/mail/". If your problem is that cookies ARE being created against the SM directory, I am not sure I understand what your issue is. Seems right to me. > So > if I put my login form in, say, mail/src/, it works. I'd rather not move > all of my site files into the mail/ subdirectory though, so is there a way > that I can access these cookies from the directory above mail/? Or can I(Continue reading)
Thank you
> In my setup these folders are optional, so an unsuspecting user could
> run into this.
>
> Included is a patch for this against spam_buttons-2.0-1.4.0
>
> This options should probably be configurable if released.
>
> Thanks,
>
> Herman van Rink
>
>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
RSS Feed