Hi Paul 

Here is the problem definition  :)

In order to display the city deals controller  reads the city from the URL,
if there  is no city in the URL it  checks the cookie. after defining the
city I update the cookie and also pass the city name and the city id to the
session and then load the page. 
The page consists of tree parts, Header, Content and the footer. 
There is no problem in the content, It always shows the correct deal.
But in the header which displays the tab menu there is a big issue!!! In
order to generate the tab links I echo the cityN session an the end of the
link, the one that is generated in the controller. it works very well. and
displays the correct cityname if you dont change the cityname,  but if you
change the city name directly from  the URL  and  press enter,  the header
part still displays the old content and needs to refresh the page to display
the correct city name. 
I guess its the browser cache because Im sure the session will be updated
before page rendering !!! because in theh content pat it displays the
correct deals!!!! 
I tried to put nocache tag it didnt help. I even display the cityname
session before header, inside header and after header and surprisingly find
out it displays the correct information before and after the header but not
inside the header!!!!!
I even wrote a function to read the cityname from the cookie and put it in
the session and call it from the header view still shows the old one!!!
I really dont know how can i synchronize them!!!

I hope I could explain it well.

Thanks

Sherry


WebbedIT wrote:
> 
>> If I change the URL from the addressbar and directly land to the page
>> information that are sending to the header element through the session
>> are
>> not updating
> 
> I'm confused what you mean by the above.  Are you caching data and
> having problems or is this a user updating their profile and their
> session info is not being update?
> 
> HTH
> 
> Paul.
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Header-element-not-refreshing%21%21%21-tp28654116p28670714.html
Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to