Support Forums

Old 03-25-2008, 02:47 AM   #1
Senior Member
 
 
Join Date: Mar 2006
Location: Calif/San Franisico Bay Area
Posts: 110
Rep Power: 16
newone is on a distinguished road
Default login / logout two sites

I have two sites www.mysite.com and www.mysite.com/directory/ I have a link from mysite.com to /directory/
and back again. My question is? when a person logs into either site first and uses the link to get to the other site is there a way for them not to be already login to the second site? Thanks
newone is offline   Reply With Quote
Old 03-25-2008, 07:09 AM   #2
cwp
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 297
Rep Power: 16
cwp is a jewel in the rough
Default

I'm not understanding fully. But let me take a guess at what you're trying to ask.

Do you have 68classifieds installed once at www.mysite.com/directory/ and installed again at www.mysite.com, each having their own mysql database?

If that is correct, you want both scripts to use the same user database?
__________________
Version 4.0.3 Developer
cwp is offline   Reply With Quote
Old 03-25-2008, 12:14 PM   #3
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

The answer is no. When you login to a website you create a user session which is only valid for that domain.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 03-25-2008, 07:24 PM   #4
Senior Member
 
 
Join Date: Mar 2006
Location: Calif/San Franisico Bay Area
Posts: 110
Rep Power: 16
newone is on a distinguished road
Default

What I have is a classified site and a directory site. If a member is log into the classified site then goes to the directory site it will show them as login. Or if you are a member in the directory site, and browse to the classified site it shows you login. How do you stop this. Both are using different databases.Thanks again
newone is offline   Reply With Quote
Old 03-26-2008, 05:34 AM   #5
cwp
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 297
Rep Power: 16
cwp is a jewel in the rough
Default

Quote:
Originally Posted by Maffo View Post
The answer is no. When you login to a website you create a user session which is only valid for that domain.
It looks like he's using the same domain name..


Quote:
Originally Posted by newone View Post
What I have is a classified site and a directory site. If a member is log into the classified site then goes to the directory site it will show them as login. Or if you are a member in the directory site, and browse to the classified site it shows you login. How do you stop this. Both are using different databases.Thanks again
If both of your scripts are using the same databases then the person shouldn't be logged into a different script placed on a different directory within your domain name. You may want to put a support ticket in and have them take a look at your problem.
__________________
Version 4.0.3 Developer
cwp is offline   Reply With Quote
Old 03-26-2008, 08:39 AM   #6
Coder
 
Join Date: Mar 2006
Posts: 4,569
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by cwp View Post
It looks like he's using the same domain name..
If both of your scripts are using the same databases then the person shouldn't be logged into a different script placed on a different directory within your domain name. You may want to put a support ticket in and have them take a look at your problem.
Everything is working as intended. Even if the two sites are using the same database, which he said they are not, the cookies are likely created using a domain and path to the site which means that

mydomain.com

and

mydomain.com/mydirectory/

are different sites and thus different sessions/cookies. For starters you would likely have to heavily modify the site so that both installs use same database (at least for users) so user data is the same for both sites. Then you would have to modify how one of them creates cookies/sessions so the values that are created are the same for both.

Not really a support issue since its all working as intended. This would customization.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 04-04-2008, 05:49 AM   #7
Senior Member
 
 
Join Date: Mar 2006
Location: Calif/San Franisico Bay Area
Posts: 110
Rep Power: 16
newone is on a distinguished road
Default

If a member is login to ether site, and uses the link to the directory or classified site, is it possible to have them auto logout of the site that they had left from? Or maybe inform them that they are going to be logout, it they continue, Giving them an option.
newone is offline   Reply With Quote
Old 04-04-2008, 08:11 AM   #8
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

If the user is on the directory, send them to Classifieds/logout.php and vice versa.
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote
Old 04-04-2008, 07:42 PM   #9
Senior Member
 
 
Join Date: Mar 2006
Location: Calif/San Franisico Bay Area
Posts: 110
Rep Power: 16
newone is on a distinguished road
Default

That works, but can they land on the homepage or the index.php, instead of the login.php page?
newone is offline   Reply With Quote
Old 04-04-2008, 09:02 PM   #10
The Master
 
Maffo's Avatar
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,400
Rep Power: 45
Maffo is just really niceMaffo is just really nice
Default

You need to change the redirection in the same code from userlogin to index.php
__________________
**Bulk Upload System** has been upgraded. Works on all v4 versions with new functionality. Free upgrade for existing customers.
Maffo is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant login Admin Anymore pvisser v3.1 Questions & Support 5 02-28-2007 10:24 AM
Logging in across several sites. Maffo v3.1 Questions & Support 4 07-25-2006 04:19 PM
Login Over and Over and Over garysmith v3.1 Questions & Support 6 05-16-2006 07:55 AM


All times are GMT -4. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0