Kohana persistant sessions and sub-domains

greenhunter

New Member
I am using the database session driver in Kohana v2. To make sessions persistent, Kohana creates a token cookie. This cookie uses the cookie configuration I suppose.When I set a session like this:\[code\]$this->session->set('UserID', $user->UserID);\[/code\]The session variable UserID is availble even when the browser is closed. Nice.The cookie uses this config setting:\[code\]$config['domain'] = '.mydomain.com';\[/code\]How can I set the domain when I set the session variable? Every user has it own sub-domain, so it is a dynamic value.
 
Back
Top