hi all,

> Now I tried to open two browser-tabs (firefox) and logged in two times
> with different users. In my opinion there should be 2 Sessions each
> for one user - with user specific content.

a new tab is _not_ a new session... in firefox, all windows/tabs use
same session for a given user "profile" ... and you can have mutiple
profiles for the same system user, just google about  "firefox profile
manager"... to have mutilple users logged in the same session you need
to do some custom session handling...changin cookie names wouldn't
work, for example, you would set cookies like

bob-sessid =   XXXXXXXXXXXXXX
alice-sessid = YYYYYYYYYYY

so at some "somecode.php" you will be sent both cookied, which one
would you use?

some custom URL rewriting might be just fine... for example when bob
logs in you rewrite all URLs for the give http connection with the
suffix:

?bob-sessid=XXXXXXXXXXXXXXXXXXXXXXX

so whenever he clicks a a url in the same tab/window, only bob-sessid
would be sent

so when alice comes and sign using the same "browser session" too, all
her URLs would get written with an ?alice-sessid=YYYYYYYYYYYY at the
end and so on

untried but might work

> As I look in the table, the session-id is used as primary key. so i
> just get the session-id when i know the session-id. But how do i know
> it ???? That's my main prblem. In other words:

why would you want to get it?! you just $this->getContext()->getUser()
and then use this user object  for whatever you like

-ahmed
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to