• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

session between domain and subdomain

javismiles

Basic Pleskian
Hi,
i have a domain.com and a secure.domain.com subdomain,
i need to share php session variables between them,

The code i use is
<?php
ini_set('session.cookie_domain', '.domain.com' );
$some_name = session_name("domain");
session_set_cookie_params(0, '/', '.domain.com');
session_start();

This code works great in other hosts of friends and both session id and session variables are being shared

in the case of my plesk 11.5 centos 6 server, the session id is being preserved but the session variables are not,
the session variables are not passing between subdomain and domain

Seems to be a plesk server issue, as the code itself works in other servers

could you please help me

thank you
 
Back
Top