Re: Session Oddity (or Mail From the Wrong User)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>> Have you checked Mac's date settings?
>>>
>>> Yes, sorry, should have specified, the Mac's clock was set to 1970.
>>>
>>
>> Coincidentally, I just had another customer report the same issue. XP,
>> IE, date was set to 2001. I'm not up to 1.4.7 yet so it may be a moot
>> point for this conversation. At least I knew what to look for this time
>> around =)
>>
>> --
>> Marc
>
> Is this actually fixed in 1.4.7?  I probably misunderstood, but I thought
> that was an open bug.
>
> Matt Ruzicka

patch adds some checks in sqsession_is_active() function.

If you want to know how many times code is triggered, enable error_log()
call. See http://www.php.net/error-log. If second argument is set to 3,
third argument sets file used for logging.

Patch is experimental. Use it on your own risk, report issues to
https://sourceforge.net/tracker/index.php?func=detail&aid=1462110&group_id=311&atid=100311
tracker.

-- 
Tomas
--- global.php.orig	2006-08-02 19:46:52.466205328 +0300
+++ global.php	2006-08-02 19:51:46.007580256 +0300
@@ -373,7 +373,16 @@
     if ( empty( $sessid ) ) {
         session_start();
     }
+    if (session_id() == 'deleted') {
+        //error_log("'deleted' session detected.");
+        if (function_exists('session_regenerate_id')) {
+            session_regenerate_id();
+        }
+        if (session_id() == 'deleted') {
+            die("Please check your machine's date settings.");
+        }
+    }
 }
 
 // vim: et ts=4
-?>
+?>
\ No newline at end of file
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
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

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux