Hi Mr.Tufty,
ok, i tell you whole story.
I build a website with cake. I'm kind of making a living of it.
I set up my own auth system, which is nothing more than
a login form and a validation against login/password.
I highly appreciated cake's session/cookie mechanism, so i
employed it :-)
Than my "boss" came up and said : hey can you modify the
login logic so that a user cannot login twice (because our
customers tend to borrow their accounts to colleagues)
Sure i can do. So what do i have to do ? I search the session
table to make sure that a user is not logged in twice....
hm... don't you agree ??
What can you see, when you evaluate $_SESSION ?
Or $this->session in cake ? You see the session of the
current user, but not the login state of *all* users.
jyrgen
On 15 Mai, 22:17, MrTufty <[EMAIL PROTECTED]> wrote:
> Jyrgen,
>
> I still don't understand why you feel the need to override Cake's
> internal session handling in favour of your own.
>
> It's simple, ok. If you want to read the existing session just use
> $this->Session->read('User.username'); or $session->read('User.username'); in
> the view. Obviously this would need
>
> customising to exactly what you call your fields, but you should be
> able to work with that to get the information you're looking for.
>
> Stephen Orr
>
> On May 15, 8:46 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 5/15/07, jyrgen <[EMAIL PROTECTED]> wrote:
>
> > > thats it. no magic with " | " signs, or custom deserialization.
>
> > The magic is the way PHP stores sessions itself. Honest. Again, go
> > read up on custom session handlers because it does explain how PHP
> > stores the session data if you go with the defaults.
>
> > --
> > Chris Hartjes
>
> > My motto for 2007: "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---