On Wednesday, 4 April 2012 19:41:55 UTC+2, Sdn ngp wrote:
>
> Hello Friends, 
>
>  Can any one help me to solve the proble....? 
>
> I have written  a code in app controller. to write the value in 
> session in beforeFilter() 
>
> //$this->params['pass'][0] ->  87445d5sd54dsd554 
>
> if(!empty($this->params['pass']) && strlen($this->params['pass'][0]) > 
> 6) 
> { 
>                     $this->Session->write('uniqueId', $this- 
> >params['pass'][0]); 
>                     $uniqueId = $this->Session->read('uniqueId'); 
> } 
>
>
> In app controller it is working fine but when i am loading other 
> controller via ajax and trying to read the data of session it some 
> time appeared and some time loading2.gif is displaying. 
>
> Because of this issue my session is corrupting the data. I have 
> broken  my head with this issue 
> echo $uniqueId = $this->Session->read('uniqueId'); 
>
> Output:   loading2.gif
>

Ask yourself these 2 questions:

1) Where in my source code is the string "loading2.gif"?
2) Under what circumstances would $this- 
>params['pass'][0] be "loading2.gif"?

Here's what experience says:

1) in a js file. Probably lightbox or similar
2) because your application is requesting /loading2.gif

Look at your webserver access log- or use firebug/developer tools and look 
for the request in the network tab and it'll confirm the above.

Then fix it.

AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to