Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

domain -> subdomain - passing session data

Howdy, having a little trouble here. I have domain.co.uk setting a session. When I click on a link on domain.co.uk to go to sub.domain.co.uk the session is not being read.

I have altered session.cookie_domain to .domain.co.uk not still not working. Is there anything else that needs changing?

Regards, me.

like image 652
Phil Jackson Avatar asked Nov 15 '22 09:11

Phil Jackson


1 Answers

in your htacces file

php_value session.cookie_domain ".domain.co.uk"

and you're done

like image 100
Adam Lukaszczyk Avatar answered Dec 12 '22 20:12

Adam Lukaszczyk