php forum
php mysql forum
php mysql smarty
 
Topic Options
#281243 - 10/24/04 11:21 AM use cookie prefix ???
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
HI<br /><br />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 ?<br /><br />i startet to set the prefix to 4701.dk in config.inc.php but that made me unable to log in ???<br /><br />THomas

Top
#281244 - 10/24/04 11:41 AM Re: use cookie prefix ??? [Re: shame4me]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
well first I gotta ask are the two boards on the same domain...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281245 - 10/24/04 11:53 AM Re: use cookie prefix ??? [Re: 234234]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
yes they are both on the same domain but in diffrent folders.<br /><br />thomas

Top
#281246 - 10/24/04 12:26 PM Re: use cookie prefix ??? [Re: shame4me]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay so then since they are on the same domain try "/" as the cookie prefix that allows it to go site wide..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281247 - 10/24/04 01:15 PM Re: use cookie prefix ??? [Re: 234234]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
no didnt work, couldnt log ind any of the sites.<br /><br />thomas

Top
#281248 - 10/24/04 01:49 PM Re: use cookie prefix ??? [Re: shame4me]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#281249 - 10/24/04 01:56 PM Re: use cookie prefix ??? [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
what Josh Said I have to go to bed sometime today.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281250 - 10/24/04 01:56 PM Re: use cookie prefix ??? [Re: Daine]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
yes thye are running on same database ;O)<br /><br />thomas<br />denmark

Top
#281251 - 10/24/04 01:58 PM Re: use cookie prefix ??? [Re: shame4me]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
well then another dumb question.. they are both threads forums right?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281252 - 10/24/04 01:59 PM Re: use cookie prefix ??? [Re: 234234]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
yes and both are same version.<br /><br />one in the folder ubbthreads and one in the folder ubbmad<br /><br />Thomas

Top
#281253 - 10/24/04 02:01 PM Re: use cookie prefix ??? [Re: shame4me]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
and they both share the same database using the same users table and the same posts table etc...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281254 - 10/24/04 02:05 PM Re: use cookie prefix ??? [Re: 234234]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
yes, all database is the same.<br /><br />only diffrence is in the templates.<br /><br />thomas

Top
#281255 - 10/24/04 02:24 PM Re: use cookie prefix ??? [Re: shame4me]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Are there two different cookies being set? Check your cookies to determine if you have two different cookies, and note the differences in here.

Top
#281256 - 10/24/04 02:25 PM Re: use cookie prefix ??? [Re: shame4me]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
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<br /><br />www.widget.com/forum and the other on www.widget.com/test and the main domain is www.widget.com?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281257 - 10/24/04 02:48 PM Re: use cookie prefix ??? [Re: 234234]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
yes itīs my own server.<br /><br />thomas

Top
#281258 - 10/24/04 03:09 PM Re: use cookie prefix ??? [Re: shame4me]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
the cookie looks like this:<br /><br />
Code:
 /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 />* 
<br /><br />i can log in in both forums but i cant jump from one to another without logging in again<br /><br />thomas

Top
#281259 - 10/25/04 12:09 AM Re: use cookie prefix ??? [Re: shame4me]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
But there is definitely only ONE cookie?<br /><br />If there are two cookies - one may be over-writing the other.<br /><br />I had (for a few years) a setup like this:<br /><br />http://www.bladekeep.com/forums/ - standard stuff<br /><br />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).<br /><br />I had no problem with this setup in terms of being logged in.

Top


Moderator:  Gizmo 
Who's Online
1 registered (Gizmo), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks