if you can't find a method in CakeSession, why not write a simple sql
query like "SELECT COUNT(*) FROM cake_session"?


On Apr 21, 4:55 pm, jwerd <[EMAIL PROTECTED]> wrote:
> Hello there, I'm using the Cake Session's DB and I need to get the
> last inserted id.  Basically something like $this->Session->getLastInsertId() 
> of course that doesn't work, is there a function
>
> I'm missing or something that will give me that?  I need to track
> this.
>
> Please let me know if this is possible.  The reason I need this is
> because I'm writing a system where only one user can be logged in at a
> time, and I want to track that by the session created by the db, but I
> want to have a surefire way to query for the correct session and I
> think by the id would be best.
>
> LMK
--~--~---------~--~----~------------~-------~--~----~
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