Re: session problem or misunderstanding.

2010-12-20 Thread georgeman
There is a Session helper and a Session component. If you want for all
controllers write in app_controllers: var $components =
array('Session');

On Dec 20, 2:03 am, "Shinya Koizumi"  wrote:
> For 1.2.8, How do I enabled that again? I am already using this for another
> control, but don't remember
> How I did it.
>
>
>
>
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
>
> Of James K
> Sent: Sunday, December 19, 2010 7:24 PM
> To: CakePHP
> Subject: Re: session problem or misunderstanding.
>
> Do you have the Session component enabled for the controller? If you
> debug out $this->Session you should get a debug out of the object. If
> you're getting nothing, it could also be that you have debug turned
> off in your core.php config file.
>
> On Dec 19, 9:40 pm, cake-learner  wrote:
> > I am trying to pass a variale with session but without success for a
> > while.
> > within the same controller i go $this -> Session -> write( 'id', 1 );
> > $this -> Session -> read( 'id' );
>
> > i gotta nothing and empty when i go debug( $this -> Session );
> > I tried with $_SESSION so i guess within the same controller i can't
> > pass with session?
>
> > I have this line $helpers = array( 'Session' ) in the controller and
> > there are already some controllers using session.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
> athttp://groups.google.com/group/cake-php?hl=en

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


RE: session problem or misunderstanding.

2010-12-19 Thread Shinya Koizumi
For 1.2.8, How do I enabled that again? I am already using this for another
control, but don't remember
How I did it.

-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of James K
Sent: Sunday, December 19, 2010 7:24 PM
To: CakePHP
Subject: Re: session problem or misunderstanding.

Do you have the Session component enabled for the controller? If you
debug out $this->Session you should get a debug out of the object. If
you're getting nothing, it could also be that you have debug turned
off in your core.php config file.

On Dec 19, 9:40 pm, cake-learner  wrote:
> I am trying to pass a variale with session but without success for a
> while.
> within the same controller i go $this -> Session -> write( 'id', 1 );
> $this -> Session -> read( 'id' );
>
> i gotta nothing and empty when i go debug( $this -> Session );
> I tried with $_SESSION so i guess within the same controller i can't
> pass with session?
>
> I have this line $helpers = array( 'Session' ) in the controller and
> there are already some controllers using session.

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

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


Re: session problem or misunderstanding.

2010-12-19 Thread James K
Do you have the Session component enabled for the controller? If you
debug out $this->Session you should get a debug out of the object. If
you're getting nothing, it could also be that you have debug turned
off in your core.php config file.

On Dec 19, 9:40 pm, cake-learner  wrote:
> I am trying to pass a variale with session but without success for a
> while.
> within the same controller i go $this -> Session -> write( 'id', 1 );
> $this -> Session -> read( 'id' );
>
> i gotta nothing and empty when i go debug( $this -> Session );
> I tried with $_SESSION so i guess within the same controller i can't
> pass with session?
>
> I have this line $helpers = array( 'Session' ) in the controller and
> there are already some controllers using session.

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


Re: session problem or misunderstanding.

2010-12-19 Thread georgeman
did you try to echo var_dump($_SESSION);  ?

On Dec 19, 9:40 pm, cake-learner  wrote:
> I am trying to pass a variale with session but without success for a
> while.
> within the same controller i go $this -> Session -> write( 'id', 1 );
> $this -> Session -> read( 'id' );
>
> i gotta nothing and empty when i go debug( $this -> Session );
> I tried with $_SESSION so i guess within the same controller i can't
> pass with session?
>
> I have this line $helpers = array( 'Session' ) in the controller and
> there are already some controllers using session.

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