As I understand, it works on the last query performed by that user, so you are always going to get the correct ID. I've never had any trouble with it with a heavily used CRM/CMS system.
On Mar 27, 1:07 pm, "bingo" <[EMAIL PROTECTED]> wrote: > Hi, > > I wanted to know how getLastInsertID works. I am especially concerned > when two different users are posting two different articles at the > exactly same time (although chances are extremely rare but is > possible), then what getLastInsertID returns..does it works within a > particular session or is global to whole application? > > Thanks > bingo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
