views:

24

answers:

1

I want to get a session loaded by the Session class given a particular session id. Is this possible?

+1  A: 

Do you want to load the data associated to the session for a specific session ID? Why do want to do this? This sounds like a very questionable security issue. A session is always associated to a specific user.

Read the docs to see how to access data for a session. I would not suggest reading different sessions from different users on a request. That's not the purpose of a session. If you really want to have session data available, you can store the session data inside your database (infos on how to do that inside the docs).

DrColossos

related questions