1
cliffcole
Cookie
  • 2005/4/20 13:53

  • cliffcole

  • Just popping in

  • Posts: 4

  • Since: 2005/4/19


I have a question about the XOOPS cookie. When I go to the website http://www.webgression.com and login it saves my info in a cookie. Then it takes me to webgression.com/index.php. When I try to click on a link it tells me I am not logged in. I know it thinks that http://www.webgression.com and webgression.com are different but I don't know how it can be fixed so logging in using the www before the domain name or without can still use the cookie information with the other. Can someone help me with this please? Thank you in advance.

2
tl
Re: Cookie
  • 2005/4/20 13:58

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23



3
cliffcole
Re: Cookie
  • 2005/4/22 1:10

  • cliffcole

  • Just popping in

  • Posts: 4

  • Since: 2005/4/19


That is exactly what I was looking for. I didn't even realize that there was a site called XOOPS Tips. Thank you very much for taking the time to help.

4
cliffcole
Re: Cookie
  • 2005/4/22 3:03

  • cliffcole

  • Just popping in

  • Posts: 4

  • Since: 2005/4/19


I changed my .htaccess to include this for one of my sites:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName http://www.kjkb.org
AuthUserFile /home/cole13/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/cole13/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} !^www\.kjkb\.org
RewriteRule (.*) http://www.kjkb.org/$1 [R=301,L]

It works perfectly.

I tried doing the same thing to another one of my other sites I am working on:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName http://www.webgression.com
AuthUserFile /home/webgress/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/webgress/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} !^www\.webgression\.com
RewriteRule (.*) http://www.webgression.com/$1 [R=301,L]

This doesn't work at all. When I log onto webgression.com it gives me a string like this: http://www.webgression.com/?PHPSESSID=3bf9a1eded2f34752cd2ee1a4f6bece5. It looks like it is giving the same information as the other site, but when I click on home it asks me to log in again.

Any suggestions on what could be wrong.

Thanks in advance.