TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-03-2010, 11:56 AM   #1 (permalink)
The Wanderer
 
superthin's Avatar
 
Join Date: Aug 2008
Posts: 16
Thanks: 7
superthin is on a distinguished road
Default How I inherit / share login session / cookies?

Hello Everybody,

I have a site like:

http://mysite.com/drupal
http://mysite.com/phpbb
http://mysite.com/wordpress
http://mysite.com/kb

All of PHP scripts above run on the same box (same hosting) and same domain.

First, I want to integrate all of them (user table) to have an one-time-login, but it is too hard and will be very difficult to add plugins / add-ons or update.

So, I think some code lines / snippet (in a single file .php as class / library to include). I will insert this file into drupal, phpbb, wordpress,... to check login status. All of script will be share a session or cookies and will active user login status of itself.

I don't want to use other solutions like LDAP, OpenID because of curve.

How will I begin?

Thanks for sharing your experiences.
__________________
http://khoancatbetong.com - Vietnamese Concrete Technician Forum
superthin is offline  
Reply With Quote
Old 07-03-2010, 06:09 PM   #2 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Well just drop Drupal and Kb and you're good to go, there's an integration plugin for phpBB+WordPress that does exactly what you need. It may be a good place to start, because the concept will remain the same in each system - check if there's a login present from one of the others, and if so add the same login to the currently active system.

That's an awful lot of applications to be running on a single site under a single login though - maybe before you go through the headache of writing an extension for each, you should examine if you really need one site running four separate entities like that.
delayedinsanity is offline  
Reply With Quote
Old 07-04-2010, 03:46 PM   #3 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

Running Drupal and Wordpress is superfluous, generally anything one can do the other can do as well. However, Drupal has a slightly steeper learning curve and if that's what you're concerned about I'd take delayed's suggestions and drop Drupal.

Having dropped Drupal, again as Delayed's said, there are plugins for Wordpress+phpBB integration.

As for KB, which I suspect to be PHPKB ( A knowledge base script ) - you're out of luck and I would recommend just a good old fashioned Q&A forum in PHPBB as a simpler alternative.
__________________
My Blog
Enfernikus is offline  
Reply With Quote
Old 07-06-2010, 02:08 AM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Enfernikus View Post
Running Drupal and Wordpress is superfluous, generally anything one can do the other can do as well. However, Drupal has a slightly steeper learning curve and if that's what you're concerned about I'd take delayed's suggestions and drop Drupal.
It has a steep learning curve, but Drupal is awesome. I'm currently doing some projects with it and I am going to be switching my site business' to it soon enough.

Using both Drupal and WP is unnecessary, if you don't know how to use either, learn Drupal. If time is an issue use WP.
__________________

Village Idiot is offline  
Reply With Quote
Old 07-06-2010, 05:42 PM   #5 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Drupal is about as user friendly as taking a right side drive car 4x4ing. Plus I heard Extenze was buying out the IP rights to their name anyways for a new senior citizen pill they're releasing. :D
delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB 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
Login script, session password issue.. Peuplarchie General 2 03-25-2010 06:22 AM
Remember me login w/ cookies Killswitch General 5 12-24-2009 10:54 PM
Huge Session Problem Killswitch General 1 11-17-2008 02:36 AM
PHP Session Login - help needed. boycoda General 6 06-08-2008 12:40 AM
Understanding the Life of a Session Wildhoney General 6 10-27-2007 02:34 AM


All times are GMT. The time now is 03:35 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design