|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
HI
I have 2 diffrent boards but i whant users from one board to be automaticly logged in on the other board, how do i set the cookie to do that ?
i startet to set the prefix to 4701.dk in config.inc.php but that made me unable to log in ???
THomas
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
well first I gotta ask are the two boards on the same domain...
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
yes they are both on the same domain but in diffrent folders.
thomas
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
okay so then since they are on the same domain try "/" as the cookie prefix that allows it to go site wide..
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
no didnt work, couldnt log ind any of the sites.
thomas
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Are they running off the same database? If they are 2 different boards, then the cookies won't be interchangeable. Only if they have a common user database.
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
what Josh Said I have to go to bed sometime today.
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
yes thye are running on same database ;O)
thomas denmark
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
well then another dumb question.. they are both threads forums right?
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
yes and both are same version.
one in the folder ubbthreads and one in the folder ubbmad
Thomas
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
and they both share the same database using the same users table and the same posts table etc...
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
yes, all database is the same.
only diffrence is in the templates.
thomas
|
|
|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
Are there two different cookies being set? Check your cookies to determine if you have two different cookies, and note the differences in here.
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
so then if they are both set to use cookies the / should tell it to use the same cookies site wide and you are already using the the same database so the cookie should work.. you are sure they are both on the same domain one is on www.widget.com/forum and the other on www.widget.com/test and the main domain is www.widget.com?
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
yes it´s my own server.
thomas
|
|
|
|
Joined: Apr 2001
Posts: 186
Member
|
Member
Joined: Apr 2001
Posts: 186 |
the cookie looks like this: /w3t_myid<br />2<br />www.4701.dk/<br />1024<br />980439168<br />29743317<br />3237765264<br />29669891<br />*<br />/w3t_language<br />danish<br />www.4701.dk/<br />1024<br />980439168<br />29743317<br />3237765264<br />29669891<br />* i can log in in both forums but i cant jump from one to another without logging in again thomas
|
|
|
|
Joined: Mar 2000
Posts: 528
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 528 |
But there is definitely only ONE cookie? If there are two cookies - one may be over-writing the other. I had (for a few years) a setup like this: http://www.bladekeep.com/forums/ - standard stuff http://www.bladekeep.com/forums-lite/ - a VERY stripped down version of the forums for people to use at work (ie very few icons or fancy schmancy stuff). I had no problem with this setup in terms of being logged in.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|