Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2008, 09:38 AM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default Session in subdomain

Hello Zend Guru

I wrote a Zend auth class using Zend/Auth/Adapter/DbTable.php with mysql.
My cookie has a dot as in .example.com
I got this in the ini file and it works
Code:
cookie_domain = .example.com
The authetications works fine with www but not any other sub domains.

and if I do:
PHP Code:
print_r($_COOKIE);
print_r($_SESSION); 
It shows the auth cookie but the session is blank in the subdomains other then www.

What am I doing wrong here?
Do zend session require something like the cookie dot?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-23-2008, 08:37 AM
troy's Avatar
Junior Member
 
Join Date: Apr 2008
Posts: 11
Default Fixed -> Session in subdomain

Real stupid:
I was starting the Zend_Session in the login class.
Moved it to the bootstrap.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:46 AM.