SEGuru Support Forums  

Need plugins? Head back to the store!

Go Back   SEGuru Support Forums > SEGuru Public Forums > Frequently Asked Questions

Click here to get the Premium Support Package today!

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 03-31-2010, 10:01 AM
Citizen Citizen is online now
SEG Staff Member
 
Join Date: Jun 2009
Posts: 1,241
Default Mystery log outs. What you need to know about cookies:

Don't worry, accessing a certain link is not logging you out.

First, lets talk about how cookies work, and how cookies work with Social Engine (and logging in for most sites).

Cookies are what is saved to keep you logged in after you exit a site. For SE, cookies and sessions are used to log you in. Cookies are specified for a particular range, and that range only.

For instance, if you log into a site and the cookie saves you as http://www.yourdomain.com, you will NOT be logged in for http://yourdomain.com. The difference is the www.

This is not a bug, its how cookies work. For most sites, http://www. and http:// point to the same content, so its easy to think that you've been logged out.

To prevent running into this, it is best to be consistant on whether to use http://www. or just http://

Additionally, you can set up your .htaccess to redirect one to the other and avoid it all together.

If you need help with this, contact your host. Any good host should help you set up what ever you need to prevent this from happening.
  #2  
Old 03-31-2010, 02:37 PM
tim tim is offline
SEG Staff Member
 
Join Date: Sep 2009
Posts: 466
Default

To make your entire site automatically remove www.

Edit your .htaccess file to begin with:
Quote:
RewriteEngine On

#SEGURU
RewriteCond %{HTTP_HOST} ^www.yoursite.com$ [NC]
RewriteRule ^(.*)$ http://yoursite.com/$1
#/SEGURU
  #3  
Old 05-06-2010, 02:44 AM
Russell123 Russell123 is offline
Beginner Guru
 
Join Date: May 2010
Posts: 1
Default

Thanks Citizen for your useful posting and information provided us
__________________
RRUUSSEELL
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:23 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.