Jump to content

Recommended Posts

All you gotta do is read the page corbin showed you. The answer is right in the parameters:

 

domain

 

    Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.php.net'.

 

It doesn't get any easier, except if you are hoping for us to do the work for you, and that's not gonna happen.

 

do you have any idea how to use it? i don't want to set any other parameter besides the domain one.

 

 

The easiest way to do that would be to either do:

 

 

ini_set('session.cookie_domain', '.yourdomain.com');

 

 

Or you could do it in php.ini or in a .htaccess file.

 

 

http://us2.php.net/manual/en/session.configuration.php#ini.session.cookie-domain

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.