PhotoStore Documentation


Member keep getting logged out?

The number one cause for members being logged out is the store has both a www and non-www version. Example www.--mysite--.com and --mysite--.com are the same site, however because they have www and non-www they are treated as different sites in your browser and in PHP. So if a user logs in while visiting www.--mysite--.com and then they go to click on a photo or gallery link and are taken to --mysite--.com/galleies/xxxxx they are logged out cause the PHP session can not carry over to the different domain name. To correct this you will need to force all users to only one version of your domain name. 

If you do a search on like google for "force users to www" or "force users to non-www" you will find a lot of topics on how to do this.

If your hosting allows a .htaccess we recommend just using one of these:

#Force all users to www version of the domain name (for better SEO) 
RewriteCond %{HTTP_HOST} !^www\. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


#Force all users to non-www version of the domain name (for better SEO) 
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] #RewriteRule ^(.*)$ http://%1/$1[R=301,L]

For example if you want to force all to www you would use the top one. You want to force them to non-www then use the bottom one. If your store is in a sub directory you will need to add that directory to the codes above. Also after adding this, be sure to log into your manager and make sure that the install URL located in settings -> software setup is set properly to match.