parameterized hostnames and SESSIONS

I am building an app where i use parameterized hostnames.

all hostnames points to the same app, the app parses the url and uses the first chunk as a username.

The problem is that a user who is using my app who is logged in my site should stay logged in, even if he change the "subdomain". how can i correct this?

i need the same session to run on all parameterized hostnames!

Help plz

take a look here

thx dude, seems u understand exactly what im looking for, but im using CDbHttpSession, there is nothing to di with CDbHttpSession?

That should work for db session also

Db session works this way

It stores a phpid cookie for the domains selected, the only difference is that the data that you set in setState or any other session function is stored in the db