Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 10:45 am EST
Geeklog Forums
config change on cookie value
longness
Anonymous
Hi to all
I want to virtualy host some sub sites but I have a limited space so I want to set a cookie variable named 'site' along with theme and language. So it can be detected by index.php and the config file for the sub site, can be choosen before any other operation. This will only change the storage paths and data base name. Core scripts will be used by all sub sites but data will be stored seperately. So I won't have to make scripts copies for each sub site.
I have concerns about possible side effects of this method, regarding plugin's tmp folders, but it seemed to me worth to try.
Besides I am new to geeklog and I couldn't figured out what to do to achive this complately. I am not experienced in cookie mechanism.
So do you think is it possible to do this without side effects? Where should I start, first?
I'll be glad to hear all advices and ideas.
Thanks allready
I want to virtualy host some sub sites but I have a limited space so I want to set a cookie variable named 'site' along with theme and language. So it can be detected by index.php and the config file for the sub site, can be choosen before any other operation. This will only change the storage paths and data base name. Core scripts will be used by all sub sites but data will be stored seperately. So I won't have to make scripts copies for each sub site.
I have concerns about possible side effects of this method, regarding plugin's tmp folders, but it seemed to me worth to try.
Besides I am new to geeklog and I couldn't figured out what to do to achive this complately. I am not experienced in cookie mechanism.
So do you think is it possible to do this without side effects? Where should I start, first?
I'll be glad to hear all advices and ideas.
Thanks allready
7
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Search the forums - there should be a few hacks around on how to set up multiple sites running off of one code base.
As for the cookies, if you have sites at sub1.example.com, sub2.example.com, etc. make sure that you set $_CONF['cookiedomain'] for each of those, i.e.
$_CONF['cookiedomain'] = '.sub1.example.com';
etc.
bye, Dirk
As for the cookies, if you have sites at sub1.example.com, sub2.example.com, etc. make sure that you set $_CONF['cookiedomain'] for each of those, i.e.
$_CONF['cookiedomain'] = '.sub1.example.com';
etc.
bye, Dirk
8
13
Quote
All times are EST. The time is now 10:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content