Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Keeping session information between a primary domain and a subdomain
  2. session_set_cookie_params ( $lifetime , '/', '.yourdomain.com');
  3.        
  4. ini_set('session.cookie_domain', '.example.com');