1
fragttdg
Please help. xoops with mod_rewirte.
  • 2006/1/3 9:54

  • fragttdg

  • Just popping in

  • Posts: 34

  • Since: 2004/6/13


I have successfully configured a .htaccess and made it work. The following is a sample for the rewrite result:
A: user.sitename.com/blog
will be mapped to:
B: http://www.sitename.com/modules/blog/index.php?username=user

Yes, as many of you can image, when I logged to this site (http://www.sitename.com) and click a URL such as A, the expected page will be loaded, together with the problem, that is, the logged status was changed, $xoopsUser was changed to NULL. My question is how to keep the logged status as the right user when I use the URL such as A which is mentioned above. Millions Millions thanks ahead!
Xoops Based site - http://www.xiubei.com

2
LazyBadger
Re: Please help. xoops with mod_rewirte.

Cookies, which store authentiication information, are domain-based... As I see - you change host's domain, thus - old authentification ignored for new hostname.
I have almost the same problem in case of multisiting with common userbase, and have only ideas how it can be solved (by dirty hack), not ready to use solution
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

3
fragttdg
Re: Please help. xoops with mod_rewirte.
  • 2006/1/3 16:06

  • fragttdg

  • Just popping in

  • Posts: 34

  • Since: 2004/6/13


Hi LazyBadger,

Thanks for your 'only ideas', by following your ideas I successfully have this problem sorted!!!! Thank you very much!!

The solution:
I just set session.cookie_domain param to my domain as ".mydomain.com", so that the cookie's scope expand to all subdomains (the default is only in http://www.mydomain.com). Fairly easy hah?
Xoops Based site - http://www.xiubei.com

4
LazyBadger
Re: Please help. xoops with mod_rewirte.

Quote:

Thank you very much!!

Don't mention... It's my last thing here - I was consideed too bad and dangerous by some persons and was banned today from XOOPS sites - and I move into "deep lurk mode"
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

Login

Who's Online

387 user(s) are online (290 user(s) are browsing Support Forums)


Members: 0


Guests: 387


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits