That all depends on what you mean by “signed in”.
If your at a business or school that uses an exchange server, then you may very well stay logged in, and the computer could be locked.
If your referringĀ to being signed in to a specific website, then it all depends on how they store their sessions, [...]