For me it seems to work like this:
$this->Session->id() will return false until you have read from,
written to or checked the session at least once.
On Sep 2, 2:07 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Sorry, just after posting I notice that you were actually using the
> method. So on that front I have nothing to offer. I get an id-string
> back each time... but I also have Auth starting the session before I
> get to my beforeFilter.
>
> /Martin
>
> On Sep 2, 2:05 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi Jeurgen,
> > I will asume we are talking about the Session component and not the
> > actual session-class used by the component.
>
> > The Session is there. Just not the id. I am not sure you should use
> > the id directly. If you write of read some data you will notice that
> > is there and working fine. When I added your debug-line to a
> > beforeFilter and to an action I did not see an id in either place.
>
> > in beforeFilter:
> > debug($this->Session->write('Test.data','hello'));
>
> > in an action:
> > debug($this->Session->read('Test.data'));
> > // will output "hello" in a debug message
>
> > If you really want to use the id then you could use the id method
> > instead.
> > debug($this->Session->id());
> > // will output something similar to "e2b607b0b7f649dfa05dcef486dfc32d"
>
> > hope it helps you a little
> > /Martin
>
> > On Sep 2, 11:55 am, JuergenRiemer <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > if I try to access $this->Session->id() in the beforeFilter function
> > > it is empty.
>
> > > function beforeFilter(){
> > > debug( $this->Session->id() );
>
> > > }
>
> > > Yet the session is there, if I ask for it in the "rest" of my
> > > controller functions
> > > Do I overlook anything?
>
> > > thx
> > > Jeurgen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---