PHP SESSIONS problem -


my php sessions when logged in not display links when type following url in browser example.com display links when type www.example.com how can fix problem if possible?

this because sessions 1 or other. do, allow users on either www.example.com or example.com . set add code .htaccess

# non-www redirect  rewritecond %{http_host} !^example\.com$  rewriterule (.*) http://example.com/$1 [r=301,l] 

this redirect people example.com if try , onto www.example.com

if have .co.uk domain may help

 # non-www redirect  rewritecond %{http_host} !^example\.co\.uk$  rewriterule (.*) http://example.co.uk/$1 [r=301,l] 

there way via sessions on sub-domains. see this more info

hope helps!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -