Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2006, 11:20 AM
Registered User
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sean1989
Default How To Login To Site And Forum

Hey all

I just wandered is there a way in which you could log into a site, but also log into a forum at the same time?

Would you have to build a sort of bridge script between the two? or could you just use the forums database to store all the logins?

Thanks in advance

Sean

 
Old July 24th, 2006, 11:17 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hai,
you have to create same session value for both,


surendran
(Anything is Possible)
 
Old July 26th, 2006, 02:33 PM
Registered User
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sean1989
Default

Any idea how to go about this?

 
Old July 26th, 2006, 03:54 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Have you used session variables before?

If so, just create a variable that holds the authenticated users id, and use that to check access to both the site and the forum.

HTH


Mike
EchoVue.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
help regardin forum site munchy_cool ASP.NET 2.0 Basics 0 October 28th, 2006 12:26 PM
Forum Login, please help. Fresh PHP How-To 1 July 30th, 2005 06:43 PM
Forum Post Editor Used through out Site Mykre BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 16th, 2005 08:33 PM
Chapter 15 Forum Login Failure Indigo11 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 November 30th, 2004 12:22 PM
Writing a forum and doing a site coderforrent.com ASP.NET 1.x and 2.0 Application Design 0 July 7th, 2004 11:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.