Hello [EMAIL PROTECTED],
On Saturday, June 25, 2005, you wrote:
> I now set my firefox to prompt for every cookies, and I reply Accept for
> every received cookies, here are the cookies I received upon login:
> 1. SQMSESSID
> 2. squirrelmail_language
> 3. key
> 4. squirrelmail_language
1 is PHP. 2 is a language cookie which I completely forgot about. See
line 66 of src/redirect.php or line 78 on src/webmail.php.
> After login seems that squirrelmail does not prompt more for cookies
> during composing and reading email etc. How can I know whether the
> cookies come from left or right frame, or from src/redirect.php?
Most of the cookies are set in src/redirect.php.
> If I say no to any of the above, the results will vary depending on the
> order to say no.
Okay, with all your changes, it is still trying to set cookies? Even
the key cookie? Have you tried closing the browser, and reopen. As
you're using Firefox, open the cookie manager, and removing all
cookies relating to the domain that this instance of SquirrelMail is
running under. Then going to the login screen. Does it attempt to set
cookies still? What happens when you try to login now? Does it try to
set the key cookie still? If so, are you /sure/ you are accessing the
same SquirrelMail as you are modifying?
> If I say no to all prompts, then I will receive the first 3 cookies as
> above, then the left and right frames will appear, after half minute's
> delay, another prompt for cookies with SQMSESSID will appear.
This may then be a case that we have to change some PHP settings in
the http.conf level rather than in the SquirrelMail scripts
themselves. Try adding the following code to your httpd.conf file.
<Directory /path/to/squirrelmail>
php_flag session.use_cookies 0
php_flag session.use_trans_sid 1
</Directory>
Restart your apache installation, see if that helps. You might also
want to try adding the following inside the above <Directory ..>
</Directory> tags...
php_flag session.use_only_cookies 1
See if that helps.
> If I say no, the "ERROR You must be logged in to access this page."
> will apear in the right frame.
> When I logout I received the following cookies
> 5. SQMSESSID , the content is "deleted"
> 6. key , the content is "deleted"
That's because of the call to sqsession_destroy in src/signout.php.
Take a look at functions/global.php around line 306ish you should see
the follow.
if (isset($_COOKIE[session_name()])) setcookie(session_name(), '', time() -
5, $base_uri);
if (isset($_COOKIE['username'])) setcookie('username','',time() -
5,$base_uri);
if (isset($_COOKIE['key'])) setcookie('key','',time() - 5,$base_uri);
You should be able to comment them out.
--
Jonathan Angliss
<[EMAIL PROTECTED]>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
squirrelmail-users mailing list
Posting Guidelines:
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users