Forums / Developer / External Ez Login

External Ez Login

Author Message

Sonia Sanchez

Wednesday 28 January 2009 5:05:17 am

Hi!

I want login to eZ from an external PHP form and keep the session on eZ.
How can I do this?

Thanks!

Jérôme Vieilledent

Wednesday 28 January 2009 1:07:00 pm

Hi Sonia

What do you exactly mean by <i>external PHP form</i> ? Is it on a different server for example ? Do you need to be logged in 2 different places ?

eZ Publish natively supports LDAP, so maybe it could be a good solution for you.
There is also a topic dedicated to SSO here : http://ez.no/developer/forum/developer/sso

I hope this helps

Sonia Sanchez

Friday 30 January 2009 3:48:06 am

Hi Jérôme!

I wanted to say that I have a form on the same server, but outside ezPublish.
With this external login form I need start session in two different aplications, ez and anotherone.

And with reference to LDAP, so I have in mind. But better if there is something simpler.

Thanks! ^^

Girgis Ageeb

Friday 30 January 2009 5:23:32 am

hi sonia
i think that you need to but a login page inside a page that is not from EZ system
i think you can do that by making an infram page inside the page you need to but you EZ login
and point it to the login page in the EZ system
by

include ( your EZ path to the login page ) ;

test it and tell me what happend
best regards

Mr.Girgis Ageeb
Web Devoloper

Kristof Coomans

Friday 30 January 2009 6:28:48 am

Hi Sonia

Are the eZ instance and the other application at the same domain?

If you can make sure they send the same cookies to each other, you can try to let the external form register its PHP session with eZ (ezsession table), so when the session cookie from the external form is send to eZ, it'll use that session.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Sonia Sanchez

Wednesday 04 February 2009 10:15:42 am

Hi guys!

Finally I solved it with AJAX.
First I compare the login data with the text file containing the users of the two applications.
And if the data are correct, I send the parameters of login and password to the ezLogin in an ajax request and the same to the login of the other aplication.

;)