I am using wamp and i have setup a subdomain on localhost using wamp and when i go from localhost to subdomain.localhost the sessions from localhost doesnt work.
However, i searhed a bit and found that i may need to add
session_set_cookie_params(0, '/', '.localhost');
before
session_start();
but it seems it doesnt work.
Could it be vhosts problem?
this is how i have set up httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot c:/wamp/www/
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@test
DocumentRoot "C:/wamp/www/sub/"
ServerName sub.localhost
ServerAlias *.localhost
</VirtualHost>