I want to know if there is a way to use the same session throughout my whole website (eg. main domain and sub domain) using PHP?
NOTE: I'm using a free hosting website so my website is a subdomain of the host website (eg. "http://mywebsite.hostwebsite.com" (I hope you know what i mean))
So if i goto http://example.hoster.com/Login.php and i start the session there (eg.
$_SESSION['Username'] = "TestUser"), and then i goto http://sub.example.hoster.com/index.php the session will also be active on this subdomain.
Also i do not have access to the php.ini file.