- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi, I have a website called, http://www.website.com (not really but this is an example). I want users to login to this site but their account control panel will be on http://www.subdomain.website.com, so they need to be redirected over there when they login. I usually do logins with php sessions rather than cookies but i don’t mind really.
My question is, If they log on in the main site and are then directed to the sub domain, can they still remain logged on with either cookies or php sessions?
Many Thanks for your time.
Chris
Thanks
for cross-subdomain sessions running on the same host, try
ini_set('session.cookie_domain', '.website.com');
Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.