Skip to Content.
Sympa Menu

devel - cookie

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: address@concealed
  • Subject: cookie
  • Date: Mon, 2 Oct 2000 10:32:55 +0000 ( )

Hi there,

I am having bad times trying to use wwsympa auth system with our in-house
workflow/group dev...

I have my own auth system and my own databases, and I decided to share a
cookie
between wwwsympa and my app.

the problem is that wwwsympa NEVER recognise my cookie.

here is my cookie definition:

my
$sympacookievalue=sprintf("%s:%s",$email,get_mac($email,$sympasecret));
my
$sympacookie1=cookie(-name=>"user",-value=>"$sympacookievalue",-path=>"/",-domain=>"",-expires=>"+5h");


I add a line in wws-lib to track down the cookie ,

unless ( $email = &check_cookie ($ENV{'HTTP_COOKIE'}, $secret)) {
&message('auth failed A');
&wwslog('info', 'get_email_from_cookie: auth failed for user %s %s',
$email,$secret);
&wwslog('info','cookie %s',$ENV{'HTTP_COOKIE'});
&wwslog('info','secret %s',$secret);
return undef;
}



in the get_email from_cookie and here is the result of the log:

Oct 2 12:05:51 skylab wwsympa[5640]: [client 195.115.8.217] cookie
user=jean%40afuu.fr%3A7586add7


which seems correct but which is in the failed auth part of get_email :(


any idea what could be wrong ?

had anyone else tried to share wwsympa cookie ?

I have tried diferent host names in the cookie but it did not change anything
etc... (the server runs under diferent names especially the web servers !!!
but
wwsympa seems to have catch the cookie)


I am using anther cookie within the same path, and it works fine... but I
cannot share the wwsympa stuff....


Any help is welcomed ;)






Jean Brangé

Directeur AFUU . Association Francaise des Utilisateurs Unix
33 places des Corolles . 92049 Paris La Defense Cedex
Tel : 33 1 47 76 30 30 Fax : 33 1 47 76 20 67



  • cookie, jean, 10/02/2000

Archive powered by MHonArc 2.6.19+.

Top of Page