Are you passing the $variable trough the url?

If so, Instead of using $variable try using this $this->params['pass']
[0] on the browser function:

It would be like:

function browse($variable) {
  $this->Session->write('mysession.variable', $this->params['pass']
[0]);
  $this->set('variable', $variable);
}

Also make sure that the param is passed through the url ....


On 13 out, 03:22, dtemes <[email protected]> wrote:
> what backend are you using for your sessions? I had similar issues
> while working with database stored sessions, but using cake or php
> sessions works fine.
>
> On 12 oct, 20:52, cricket <[email protected]> wrote:
>
>
>
> > On Tue, Oct 12, 2010 at 9:19 AM, 浪漫様 <[email protected]> wrote:
> > > no, i'm on HTTP only : )
> > > and the sessions works fine, the only problem is when using the
> > > $variable from the controller's function... then it turns to be empty.
> > > thanks
>
> > And you can see the variable from the browse view? Are you certain
> > that browse() is being passed a param?

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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to