0

Hello Community,
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.

Please Help...

Edited by joshl_1995

2
Contributors
2
Replies
5
Views
4 Years
Discussion Span
Last Post by joshl_1995
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.