By raph on Monday, 05 October 2015
Replies 3
Likes 0
Views 865
Votes 0
Hi Stackideas team,

I have 2 links in my meny leading each to a specific profile type registration:
- link one: href= http://mysite/login-en/registration?task=selectType&profile_id=4&controller=registration
- link two: href= http://mysite/login-en/registration?task=selectType&profile_id=2&controller=registration

both links are leading to a page shown in the browser as: http://mysite/login-en/registration/steps/1

the problem:
if I click on link one, I arrive on http://mysite/login-en/registration/steps/1 corresponding to profile type one registration form ;
then if I click on link two, I arrive on http://mysite/login-en/registration/steps/1 with still profile type one registration form and not the profile type two registration form.

I guess this is because the browser associates http://mysite/login-en/registration/steps/1 with profile type one.

If I clear the cache of the browser and then click on link two links I correctly arrive to http://mysite/login-en/registration/steps/1 with profile type two registration form.

So one my configuration, switching between profile types requires browser caching to work.

Even with site cache settings on off.

Do you have a solution to avoid clearing browser cache?

Many thanks in advance

Raph
Hi Raph,

I am really sorry for the delay of this reply.

I just tested both link above in my chrome browser and firefox browser and it seems like each link redirected me to the correct profile type according to the profile id above. May I know what browser you are currently using so that I can try to replicate the issue on your site?
·
Monday, 05 October 2015 10:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Dear Ezrul,

I have windows 8.1 and I am using
- chrome Version 45.0.2454.101 m
the pb also occurs on
- Opera 32.0
- Internet Explorer 11.0.9600.18036

But indeed no problem on
- Safari 5.1.7 for windows
- Firefox 40.0.3

Actually some times the pb occurs when you
- click once on link 1 and then once on link 2 ;

some times it occurs when
- click one on link 1 and then once on link 2 and then again on link 1.

it did the same with protostar theme.
and when clicking on both links on the /login-en/registration page.

?
·
Monday, 05 October 2015 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raph,

I've checked the code algorithm inside easysocial registration page and we do have include a code from joomla to clean up any cache on the site when a user accessing registration page. In addition I've include the following code inside your /components/com_easysocial/views/registration/view.html.php to clear up browser cache using php.
// Clear cache as soon as the user registers on the site.
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: application/xml; charset=utf-8");

By the way I've tried to follow all the steps that you mentioned in your previous reply with and without additional code above and I am not able to replicate the issue from my end.
·
Monday, 05 October 2015 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post