Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

session cross sub domain compatible


1 reply to this topic

#1 xp02ed

  • Community Member
  • 52 posts
  • Real Name:Jay
  • Gender:Male

Posted 28 February 2011, 05:54

hey guys

im trying to figure out how the configuration should be for a shop in a subdomain

IE
shop.domain.com

and i want to share the cookie so anything on domain.com can use that same cookie/session

so basically the session details stay across the whole domain?
ATM i have

define('HTTP_COOKIE_DOMAIN', '.domain.com');

is this right?

Edited by xp02ed, 28 February 2011, 05:55.


#2 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 03 March 2011, 05:17

Should be fine with the "." in the front
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!