Share » Forums » Developer » Pre filled user register / Login...

Pre filled user register / Login handler redirection

Pre filled user register / Login handler redirection

Monday 25 August 2008 3:05:28 am - 5 replies

Author Message

Maxime Thomas

Monday 25 August 2008 3:21:18 am

I tried with the $http->redirect function so I can redirect my user to the user register form and pre filled the form with the values stored in the session. But when I try with another former user, I still get the data of the former user... Though, I have cleaned the session variable. Very strange.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Monday 25 August 2008 3:43:42 am

Apparently, when you change the header you lose the changes of the PHP session. Too bad. Does someone know how to avoid that beahvior ?

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Maxime Thomas

Monday 25 August 2008 4:42:13 am

So, it seems to be a common solution, just close the session handler before redirect by :

session_write_close();

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Victor Dujardin

Thursday 12 March 2009 9:16:12 am

Hi Maxime,

Like you did, I'm interested in checking a user existence in a (not eZ) database before registering.
Could you help me and give some tips to manage that, e.g. files to modify or even code if you don't bother. This would be really helpful.

Thanks.

Jean-Yves Zinsou

Friday 13 March 2009 3:33:17 am

Hi Maxime, thanx for sharing ... Can be very usefull!

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu