>> argh... my PC crashed when I was writing the original email, and the
>> devel one got the line the stable should have got. Line 153 *should*
>> say 157 I believe (the end of the sqsession_destroy in case I messed
>> up again).
>
> That doesn't help.  However, I noticed that another thing you changed
> was that the setcookie calls in sqsession_destroy no longer uses
> $base_uri as the cookie path. This is definitely an error.  It creates,
> for one thing, empty cookies in $base_uri/src which are never
> overwritten (because later versions are created in the correct place)
> and which mask the correct values.
>
> So I changed src/global.php as shown below.  And now I can log in.
>

[snip]

>     $cookie_params = session_get_cookie_params();
>     setcookie(session_name(), '', time() - 5, $cookie_params['path'],
>         $cookie_params['domain']);
>     setcookie('username','',time() - 5,$base_uri);
>     setcookie('key','',time() - 5,$base_uri);

This is most unusual.  PHP says you can remove a cookie just by providing
it's name, or setting it's time back in time to cause the browser to
expire it.  I guess they incorrectly stated that then.  I'll update the
code appropriately.  Thanks.

-- 
Jonathan Angliss
([EMAIL PROTECTED])




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to