Subject: The mailing list for listmasters using Sympa
List archive
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] How to use my own login system
- Date: Fri, 19 Mar 2010 13:05:34 +0100
Hi,
The cookie does just contain a unique (and randomly calculated) key. All the data regarding the user are located in the correpsonding entry in the database.
Maybe you can modify the Sympa template (through which you can access the session data). something like :
[% IF user.email %]
Put wht you need if the user logged in already.
[% ELSE %]
Put wht you need if the user never logged in.
[% END %]
In other words: you should put your javascript in the "login_menu.tt2" template.
Regards,
David
Le 19/03/2010 12:07, address@concealed a écrit :
Hi,
I am trying to do the "auto click" action with mod_rewrite, something like
this:
RewriteCond %{HTTP_COOKIE} !sympa_session
RewriteRule /* /sympa/lists/sso_login/Login/init/sso_login_succeeded/Login
[L,R]
It means something like "if the cookie is not created, autoclick".
The problem is that it seems that sympa created a cookie named sympa_session
whether you have log in or not. I mean, the first time you enter sympa and
you have not provided any info (so you can see the form), the cookie is
already created, so my conditions rules can't apply.
What do you do with the cookie once the user provided good credentials?
Is there anything I can check in the cookie to know if the user is already
in or not?
Checking the cookie with firefox the only I can see is that the value of the
cookie (a long number) is changuing.
--
David Verdin
Comité réseau des universités
-
Re: [sympa-users] How to use my own login system
, (continued)
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/16/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/16/2010
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/16/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/16/2010
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/17/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/17/2010
- Re: [sympa-users] How to use my own login system, David Verdin, 03/17/2010
- Re: Re: [sympa-users] How to use my own login system, dogmadefe, 03/17/2010
- Re: [sympa-users] How to use my own login system, David Verdin, 03/18/2010
- Re: Re: [sympa-users] How to use my own login system, dogmadefe, 03/19/2010
- Re: [sympa-users] How to use my own login system, David Verdin, 03/19/2010
- Re: Re: [sympa-users] How to use my own login system, dogmadefe, 03/19/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/17/2010
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/17/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/16/2010
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/16/2010
-
Re: Re: [sympa-users] How to use my own login system,
dogmadefe, 03/16/2010
-
Re: [sympa-users] How to use my own login system,
Olivier Salaün, 03/16/2010
Archive powered by MHonArc 2.6.19+.